W3cubDocs

/Rust

Trait CoerceShared

pub trait CoerceShared: Reborrow {
    type Target: Copy;
}
🔬This is a nightly-only experimental API. (reborrow #145612)

Allows reborrowable value to be reborrowed as shared, creating a copy that disables the source for writes for the lifetime of the copy.

Required Associated Types

Source
type Target: Copy
🔬This is a nightly-only experimental API. (reborrow #145612)

The type of this value when reborrowed as shared.

Implementors

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/ops/trait.CoerceShared.html