Struct rustc_middle::ty::flags::FlagComputation [−][src]
pub struct FlagComputation {
pub flags: TypeFlags,
pub outer_exclusive_binder: DebruijnIndex,
}Fields
flags: TypeFlagsouter_exclusive_binder: DebruijnIndexImplementations
indicates that self refers to something at binding level binder
indicates that self refers to something inside binding
level binder – not bound by binder, but bound by the next
binder internal to it
fn bound_computation<T, F>(&mut self, value: Binder<'_, T>, f: F) where
F: FnOnce(&mut Self, T),
fn bound_computation<T, F>(&mut self, value: Binder<'_, T>, f: F) where
F: FnOnce(&mut Self, T), Adds the flags/depth from a set of types that appear within the current type, but within a region binder.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FlagComputationimpl Send for FlagComputationimpl Sync for FlagComputationimpl Unpin for FlagComputationimpl UnwindSafe for FlagComputationBlanket Implementations
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: 8 bytes