pub struct CompressedTraitRefs(u32);Tuple Fields§
§0: u32Implementations§
Source§impl CompressedTraitRefs
impl CompressedTraitRefs
pub const SIZED: CompressedTraitRefs
pub const META_SIZED: CompressedTraitRefs
pub const POINTEE_SIZED: CompressedTraitRefs
pub const CLONE: CompressedTraitRefs
pub const COPY: CompressedTraitRefs
pub const DEBUG: CompressedTraitRefs
pub const DROP: CompressedTraitRefs
pub const UNPIN: CompressedTraitRefs
pub const EQ: CompressedTraitRefs
pub const SEND: CompressedTraitRefs
pub const SYNC: CompressedTraitRefs
Source§impl CompressedTraitRefs
impl CompressedTraitRefs
Sourcepub const fn empty() -> CompressedTraitRefs
pub const fn empty() -> CompressedTraitRefs
Get a flags value with all bits unset.
Sourcepub const fn all() -> CompressedTraitRefs
pub const fn all() -> CompressedTraitRefs
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<CompressedTraitRefs>
pub const fn from_bits(bits: u32) -> Option<CompressedTraitRefs>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> CompressedTraitRefs
pub const fn from_bits_truncate(bits: u32) -> CompressedTraitRefs
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> CompressedTraitRefs
pub const fn from_bits_retain(bits: u32) -> CompressedTraitRefs
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<CompressedTraitRefs>
pub fn from_name(name: &str) -> Option<CompressedTraitRefs>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: CompressedTraitRefs) -> bool
pub const fn intersects(&self, other: CompressedTraitRefs) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: CompressedTraitRefs) -> bool
pub const fn contains(&self, other: CompressedTraitRefs) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: CompressedTraitRefs)
pub fn insert(&mut self, other: CompressedTraitRefs)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: CompressedTraitRefs)
pub fn remove(&mut self, other: CompressedTraitRefs)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: CompressedTraitRefs)
pub fn toggle(&mut self, other: CompressedTraitRefs)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: CompressedTraitRefs, value: bool)
pub fn set(&mut self, other: CompressedTraitRefs, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(
self,
other: CompressedTraitRefs,
) -> CompressedTraitRefs
pub const fn intersection( self, other: CompressedTraitRefs, ) -> CompressedTraitRefs
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(self, other: CompressedTraitRefs) -> CompressedTraitRefs
pub const fn union(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(self, other: CompressedTraitRefs) -> CompressedTraitRefs
pub const fn difference(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(
self,
other: CompressedTraitRefs,
) -> CompressedTraitRefs
pub const fn symmetric_difference( self, other: CompressedTraitRefs, ) -> CompressedTraitRefs
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> CompressedTraitRefs
pub const fn complement(self) -> CompressedTraitRefs
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl CompressedTraitRefs
impl CompressedTraitRefs
Sourcepub const fn iter(&self) -> Iter<CompressedTraitRefs> ⓘ
pub const fn iter(&self) -> Iter<CompressedTraitRefs> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<CompressedTraitRefs> ⓘ
pub const fn iter_names(&self) -> IterNames<CompressedTraitRefs> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Source§impl CompressedTraitRefs
impl CompressedTraitRefs
pub fn get_and_mask_least_significant_bit( &mut self, ) -> Option<CompressedTraitRefs>
pub fn from_lang_item( lang_item: SolverTraitLangItem, ) -> Option<CompressedTraitRefs>
pub fn lang_item_from_single_bit(self) -> SolverTraitLangItem
pub fn trait_clause_from_def_id<I>(
cx: I,
self_ty: <I as Interner>::GenericArgs,
def_id: <I as Interner>::TraitId,
) -> Binder<I, TraitClause<I>>where
I: Interner,
pub fn trait_clause_from_single_bit<I>(
self,
cx: I,
self_ty: <I as Interner>::GenericArgs,
) -> Binder<I, TraitClause<I>>where
I: Interner,
Trait Implementations§
Source§impl Binary for CompressedTraitRefs
impl Binary for CompressedTraitRefs
Source§impl BitAnd for CompressedTraitRefs
impl BitAnd for CompressedTraitRefs
Source§fn bitand(self, other: CompressedTraitRefs) -> CompressedTraitRefs
fn bitand(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The bitwise and (&) of the bits in two flags values.
Source§type Output = CompressedTraitRefs
type Output = CompressedTraitRefs
& operator.Source§impl BitAndAssign for CompressedTraitRefs
impl BitAndAssign for CompressedTraitRefs
Source§fn bitand_assign(&mut self, other: CompressedTraitRefs)
fn bitand_assign(&mut self, other: CompressedTraitRefs)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for CompressedTraitRefs
impl BitOr for CompressedTraitRefs
Source§fn bitor(self, other: CompressedTraitRefs) -> CompressedTraitRefs
fn bitor(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The bitwise or (|) of the bits in two flags values.
Source§type Output = CompressedTraitRefs
type Output = CompressedTraitRefs
| operator.Source§impl BitOrAssign for CompressedTraitRefs
impl BitOrAssign for CompressedTraitRefs
Source§fn bitor_assign(&mut self, other: CompressedTraitRefs)
fn bitor_assign(&mut self, other: CompressedTraitRefs)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for CompressedTraitRefs
impl BitXor for CompressedTraitRefs
Source§fn bitxor(self, other: CompressedTraitRefs) -> CompressedTraitRefs
fn bitxor(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = CompressedTraitRefs
type Output = CompressedTraitRefs
^ operator.Source§impl BitXorAssign for CompressedTraitRefs
impl BitXorAssign for CompressedTraitRefs
Source§fn bitxor_assign(&mut self, other: CompressedTraitRefs)
fn bitxor_assign(&mut self, other: CompressedTraitRefs)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for CompressedTraitRefs
impl Clone for CompressedTraitRefs
Source§fn clone(&self) -> CompressedTraitRefs
fn clone(&self) -> CompressedTraitRefs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CompressedTraitRefs
Source§impl Debug for CompressedTraitRefs
impl Debug for CompressedTraitRefs
Source§impl<__D> Decodable<__D> for CompressedTraitRefswhere
__D: Decoder,
impl<__D> Decodable<__D> for CompressedTraitRefswhere
__D: Decoder,
fn decode(__decoder: &mut __D) -> CompressedTraitRefs
Source§impl<__E> Encodable<__E> for CompressedTraitRefswhere
__E: Encoder,
impl<__E> Encodable<__E> for CompressedTraitRefswhere
__E: Encoder,
Source§impl Extend<CompressedTraitRefs> for CompressedTraitRefs
impl Extend<CompressedTraitRefs> for CompressedTraitRefs
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = CompressedTraitRefs>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = CompressedTraitRefs>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for CompressedTraitRefs
impl Flags for CompressedTraitRefs
Source§const FLAGS: &'static [Flag<CompressedTraitRefs>]
const FLAGS: &'static [Flag<CompressedTraitRefs>]
Source§fn from_bits_retain(bits: u32) -> CompressedTraitRefs
fn from_bits_retain(bits: u32) -> CompressedTraitRefs
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
Source§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS.Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<CompressedTraitRefs> for CompressedTraitRefs
impl FromIterator<CompressedTraitRefs> for CompressedTraitRefs
Source§fn from_iter<T>(iterator: T) -> CompressedTraitRefswhere
T: IntoIterator<Item = CompressedTraitRefs>,
fn from_iter<T>(iterator: T) -> CompressedTraitRefswhere
T: IntoIterator<Item = CompressedTraitRefs>,
The bitwise or (|) of the bits in each flags value.
Source§impl<__V> GenericTypeVisitable<__V> for CompressedTraitRefswhere
u32: GenericTypeVisitable<__V>,
impl<__V> GenericTypeVisitable<__V> for CompressedTraitRefswhere
u32: GenericTypeVisitable<__V>,
fn generic_visit_with(&self, __visitor: &mut __V)
Source§impl Hash for CompressedTraitRefs
impl Hash for CompressedTraitRefs
Source§impl IntoIterator for CompressedTraitRefs
impl IntoIterator for CompressedTraitRefs
Source§type Item = CompressedTraitRefs
type Item = CompressedTraitRefs
Source§type IntoIter = Iter<CompressedTraitRefs>
type IntoIter = Iter<CompressedTraitRefs>
Source§impl LowerHex for CompressedTraitRefs
impl LowerHex for CompressedTraitRefs
Source§impl Not for CompressedTraitRefs
impl Not for CompressedTraitRefs
Source§fn not(self) -> CompressedTraitRefs
fn not(self) -> CompressedTraitRefs
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = CompressedTraitRefs
type Output = CompressedTraitRefs
! operator.Source§impl Octal for CompressedTraitRefs
impl Octal for CompressedTraitRefs
Source§impl PartialEq for CompressedTraitRefs
impl PartialEq for CompressedTraitRefs
Source§impl StableHash for CompressedTraitRefs
impl StableHash for CompressedTraitRefs
fn stable_hash<__Hcx>(
&self,
__hcx: &mut __Hcx,
__hasher: &mut StableHasher<SipHasher128>,
)where
__Hcx: StableHashCtxt,
impl StructuralPartialEq for CompressedTraitRefs
Source§impl Sub for CompressedTraitRefs
impl Sub for CompressedTraitRefs
Source§fn sub(self, other: CompressedTraitRefs) -> CompressedTraitRefs
fn sub(self, other: CompressedTraitRefs) -> CompressedTraitRefs
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = CompressedTraitRefs
type Output = CompressedTraitRefs
- operator.Source§impl SubAssign for CompressedTraitRefs
impl SubAssign for CompressedTraitRefs
Source§fn sub_assign(&mut self, other: CompressedTraitRefs)
fn sub_assign(&mut self, other: CompressedTraitRefs)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Auto Trait Implementations§
impl DynSend for CompressedTraitRefs
impl DynSync for CompressedTraitRefs
impl Forget for CompressedTraitRefs
impl Freeze for CompressedTraitRefs
impl Move for CompressedTraitRefs
impl RefUnwindSafe for CompressedTraitRefs
impl Send for CompressedTraitRefs
impl Sync for CompressedTraitRefs
impl Unpin for CompressedTraitRefs
impl UnsafeUnpin for CompressedTraitRefs
impl UnwindSafe for CompressedTraitRefs
Blanket Implementations§
Source§impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for Twhere
T: Copy,
fn allocate_on(self, arena: &'tcx Arena<'tcx>) -> &'tcx mut T
fn allocate_from_iter( arena: &'tcx Arena<'tcx>, iter: impl IntoIterator<Item = T>, ) -> &'tcx mut [T]
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<'tcx, T> DepNodeKey<'tcx> for Twhere
T: StableHash + Debug,
impl<'tcx, T> DepNodeKey<'tcx> for Twhere
T: StableHash + Debug,
default fn key_fingerprint_style() -> KeyFingerprintStyle
Source§default fn to_fingerprint(&self, tcx: TyCtxt<'tcx>) -> Fingerprint
default fn to_fingerprint(&self, tcx: TyCtxt<'tcx>) -> Fingerprint
Fingerprint to be used
in DepNode.Source§default fn try_recover_key(_: TyCtxt<'tcx>, _: &DepNode) -> Option<T>
default fn try_recover_key(_: TyCtxt<'tcx>, _: &DepNode) -> Option<T>
DepNode,
something which is needed when forcing DepNodes during red-green
evaluation. The query system will only call this method if
fingerprint_style() is not FingerprintStyle::Opaque.
It is always valid to return None here, in which case incremental
compilation will treat the query as having changed instead of forcing it.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<K> IntoQueryKey<K> for K
impl<K> IntoQueryKey<K> for K
Source§fn into_query_key(self) -> K
fn into_query_key(self) -> K
Self to K.
This should always be a very cheap conversion, e.g. LocalDefId::to_def_id.Source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
impl<I, T, U> Upcast<I, U> for Twhere
U: UpcastFrom<I, T>,
Source§impl<I, T> UpcastFrom<I, T> for T
impl<I, T> UpcastFrom<I, T> for T
fn upcast_from(from: T, _tcx: I) -> T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 4 bytes