Struct rustc::ty::adjustment::CoerceUnsizedInfo [−][src]
pub struct CoerceUnsizedInfo { pub custom_kind: Option<CustomCoerceUnsized>, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Information for CoerceUnsized
impls, storing information we
have computed about the coercion.
This struct can be obtained via the coerce_impl_info
query.
Demanding this struct also has the side-effect of reporting errors
for inappropriate impls.
Fields
custom_kind: Option<CustomCoerceUnsized>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
If this is a "custom coerce" impl, then what kind of custom
coercion is it? This applies to impls of CoerceUnsized
for
structs, primarily, where we store a bit of info about which
fields need to be coerced.
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CoerceUnsizedInfo
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for CoerceUnsizedInfo
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Clone for CoerceUnsizedInfo
[src]
impl Clone for CoerceUnsizedInfo
fn clone(&self) -> CoerceUnsizedInfo
[src]
fn clone(&self) -> CoerceUnsizedInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for CoerceUnsizedInfo
[src]
impl Copy for CoerceUnsizedInfo
impl Encodable for CoerceUnsizedInfo
[src]
impl Encodable for CoerceUnsizedInfo
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for CoerceUnsizedInfo
[src]
impl Decodable for CoerceUnsizedInfo
fn decode<__D: Decoder>(d: &mut __D) -> Result<CoerceUnsizedInfo, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<CoerceUnsizedInfo, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Debug for CoerceUnsizedInfo
[src]
impl Debug for CoerceUnsizedInfo
Auto Trait Implementations
impl Send for CoerceUnsizedInfo
impl Send for CoerceUnsizedInfo
impl Sync for CoerceUnsizedInfo
impl Sync for CoerceUnsizedInfo