Struct rustc_middle::ty::adjustment::CoerceUnsizedInfo [−][src]
pub struct CoerceUnsizedInfo {
pub custom_kind: Option<CustomCoerceUnsized>,
}Expand description
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>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
Auto Trait Implementations
impl RefUnwindSafe for CoerceUnsizedInfoimpl Send for CoerceUnsizedInfoimpl Sync for CoerceUnsizedInfoimpl Unpin for CoerceUnsizedInfoimpl UnwindSafe for CoerceUnsizedInfoBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes