Struct rustc_middle::ty::adt::AdtFlags [−][src]
pub struct AdtFlags {
bits: u32,
}Fields
bits: u32Implementations
impl AdtFlags[src]
impl AdtFlags[src]pub const NO_ADT_FLAGS: AdtFlags[src]
pub const IS_PHANTOM_DATA: AdtFlags[src]
pub const IS_PHANTOM_DATA: AdtFlags[src]Indicates whether the type is PhantomData.
pub const IS_FUNDAMENTAL: AdtFlags[src]
pub const IS_FUNDAMENTAL: AdtFlags[src]Indicates whether the type has a #[fundamental] attribute.
pub const IS_MANUALLY_DROP: AdtFlags[src]
pub const IS_MANUALLY_DROP: AdtFlags[src]Indicates whether the type is ManuallyDrop.
pub const IS_VARIANT_LIST_NON_EXHAUSTIVE: AdtFlags[src]
pub const IS_VARIANT_LIST_NON_EXHAUSTIVE: AdtFlags[src]Indicates whether the variant list of this ADT is #[non_exhaustive].
(i.e., this flag is never set unless this ADT is an enum).
pub fn from_bits(bits: u32) -> Option<AdtFlags>[src]
pub fn from_bits(bits: u32) -> Option<AdtFlags>[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> AdtFlags[src]
pub const fn from_bits_truncate(bits: u32) -> AdtFlags[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> AdtFlags[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> AdtFlags[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: AdtFlags) -> bool[src]
pub const fn intersects(&self, other: AdtFlags) -> bool[src]Returns true if there are flags common to both self and other.
Trait Implementations
impl BitAndAssign<AdtFlags> for AdtFlags[src]
impl BitAndAssign<AdtFlags> for AdtFlags[src]fn bitand_assign(&mut self, other: AdtFlags)[src]
fn bitand_assign(&mut self, other: AdtFlags)[src]Disables all flags disabled in the set.
impl BitOrAssign<AdtFlags> for AdtFlags[src]
impl BitOrAssign<AdtFlags> for AdtFlags[src]fn bitor_assign(&mut self, other: AdtFlags)[src]
fn bitor_assign(&mut self, other: AdtFlags)[src]Adds the set of flags.
impl BitXorAssign<AdtFlags> for AdtFlags[src]
impl BitXorAssign<AdtFlags> for AdtFlags[src]fn bitxor_assign(&mut self, other: AdtFlags)[src]
fn bitxor_assign(&mut self, other: AdtFlags)[src]Toggles the set of flags.
impl Extend<AdtFlags> for AdtFlags[src]
impl Extend<AdtFlags> for AdtFlags[src]fn extend<T: IntoIterator<Item = AdtFlags>>(&mut self, iterator: T)[src]
fn extend<T: IntoIterator<Item = AdtFlags>>(&mut self, iterator: T)[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)[src]
fn extend_one(&mut self, item: A)[src]extend_one)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)[src]
fn extend_reserve(&mut self, additional: usize)[src]extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<AdtFlags> for AdtFlags[src]
impl FromIterator<AdtFlags> for AdtFlags[src]impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for AdtFlags[src]
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for AdtFlags[src]fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
impl Ord for AdtFlags[src]
impl Ord for AdtFlags[src]impl PartialOrd<AdtFlags> for AdtFlags[src]
impl PartialOrd<AdtFlags> for AdtFlags[src]fn partial_cmp(&self, other: &AdtFlags) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &AdtFlags) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl SubAssign<AdtFlags> for AdtFlags[src]
impl SubAssign<AdtFlags> for AdtFlags[src]fn sub_assign(&mut self, other: AdtFlags)[src]
fn sub_assign(&mut self, other: AdtFlags)[src]Disables all flags enabled in the set.
impl Copy for AdtFlags[src]
impl Eq for AdtFlags[src]
impl StructuralEq for AdtFlags[src]
impl StructuralPartialEq for AdtFlags[src]
Auto Trait Implementations
impl RefUnwindSafe for AdtFlags
impl Send for AdtFlags
impl Sync for AdtFlags
impl Unpin for AdtFlags
impl UnwindSafe for AdtFlags
Blanket Implementations
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]pub fn allocate_on(Self, &'a Arena<'tcx>) -> &'a mut T[src]
pub fn allocate_from_iter(
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘ[src]
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘ
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,