Struct rustc_middle::ty::flags::FlagComputation [−][src]
pub struct FlagComputation {
pub flags: TypeFlags,
pub outer_exclusive_binder: DebruijnIndex,
}
Fields
flags: TypeFlags
outer_exclusive_binder: DebruijnIndex
Implementations
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 FlagComputation
impl Send for FlagComputation
impl Sync for FlagComputation
impl Unpin for FlagComputation
impl UnwindSafe for FlagComputation
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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