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

🔬 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<'tcx> HashStable<StableHashingContext<'tcx>> for CoerceUnsizedInfo
[src]

[src]

🔬 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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CoerceUnsizedInfo
[src]

impl Encodable for CoerceUnsizedInfo
[src]

[src]

🔬 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]

[src]

🔬 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]

[src]

Formats the value using the given formatter. Read more