Struct rustc_mir::transform::qualify_consts::Qualif [−]
struct Qualif {
bits: u8,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
bits: u8
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl Qualif
impl Qualifpub const MUTABLE_INTERIOR: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
MUTABLE_INTERIOR: Qualif = Qualif{bits: 1 << 0,}
pub const NEEDS_DROP: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
NEEDS_DROP: Qualif = Qualif{bits: 1 << 1,}
pub const FN_ARGUMENT: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
FN_ARGUMENT: Qualif = Qualif{bits: 1 << 2,}
pub const NOT_CONST: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
NOT_CONST: Qualif = Qualif{bits: 1 << 3,}
pub const NOT_PROMOTABLE: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
NOT_PROMOTABLE: Qualif = Qualif{bits: 1 << 4,}
pub const CONST_ERROR: Qualif
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
CONST_ERROR: Qualif = Qualif{bits: !<Qualif>::MUTABLE_INTERIOR.bits & !<Qualif>::NOT_PROMOTABLE.bits,}
pub fn empty() -> Qualif
pub fn empty() -> Qualif🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns an empty set of flags.
pub fn all() -> Qualif
pub fn all() -> Qualif🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the set containing all flags.
pub fn bits(&self) -> u8
pub fn bits(&self) -> u8🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u8) -> Option<Qualif>
pub fn from_bits(bits: u8) -> Option<Qualif>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u8) -> Qualif
pub fn from_bits_truncate(bits: u8) -> Qualif🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true if all flags are currently set.
pub fn intersects(&self, other: Qualif) -> bool
pub fn intersects(&self, other: Qualif) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true if there are flags common to both self and other.
pub fn contains(&self, other: Qualif) -> bool
pub fn contains(&self, other: Qualif) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: Qualif)
pub fn insert(&mut self, other: Qualif)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Inserts the specified flags in-place.
pub fn remove(&mut self, other: Qualif)
pub fn remove(&mut self, other: Qualif)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Removes the specified flags in-place.
pub fn toggle(&mut self, other: Qualif)
pub fn toggle(&mut self, other: Qualif)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Toggles the specified flags in-place.
pub fn set(&mut self, other: Qualif, value: bool)
pub fn set(&mut self, other: Qualif, value: bool)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Inserts or removes the specified flags depending on the passed value.
impl<'a, 'tcx> Qualif[src]
impl<'a, 'tcx> Qualiffn restrict(
&mut self,
ty: Ty<'tcx>,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
param_env: ParamEnv<'tcx>
)[src]
fn restrict(
&mut self,
ty: Ty<'tcx>,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
param_env: ParamEnv<'tcx>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Remove flags which are impossible for the given type.
Trait Implementations
impl Copy for Qualif
impl Copy for Qualifimpl PartialEq for Qualif
impl PartialEq for Qualiffn eq(&self, other: &Qualif) -> bool
fn eq(&self, other: &Qualif) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Qualif) -> bool
fn ne(&self, other: &Qualif) -> boolThis method tests for !=.
impl Eq for Qualif
impl Eq for Qualiffn assert_receiver_is_total_eq(&self)
fn assert_receiver_is_total_eq(&self)impl Clone for Qualif
impl Clone for Qualiffn clone(&self) -> Qualif
fn clone(&self) -> QualifReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for Qualif
impl PartialOrd for Qualiffn partial_cmp(&self, other: &Qualif) -> Option<Ordering>
fn partial_cmp(&self, other: &Qualif) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Qualif) -> bool
fn lt(&self, other: &Qualif) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Qualif) -> bool
fn le(&self, other: &Qualif) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Qualif) -> bool
fn gt(&self, other: &Qualif) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Qualif) -> bool
fn ge(&self, other: &Qualif) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Qualif
impl Ord for Qualiffn cmp(&self, other: &Qualif) -> Ordering
fn cmp(&self, other: &Qualif) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Qualif
impl Hash for Qualiffn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Qualif
impl Debug for Qualifimpl Binary for Qualif
impl Binary for Qualifimpl Octal for Qualif
impl Octal for Qualifimpl LowerHex for Qualif
impl LowerHex for Qualifimpl UpperHex for Qualif
impl UpperHex for Qualifimpl BitOr for Qualif
impl BitOr for Qualiftype Output = Qualif
The resulting type after applying the | operator.
fn bitor(self, other: Qualif) -> Qualif
fn bitor(self, other: Qualif) -> QualifReturns the union of the two sets of flags.
impl BitOrAssign for Qualif
impl BitOrAssign for Qualiffn bitor_assign(&mut self, other: Qualif)
fn bitor_assign(&mut self, other: Qualif)Adds the set of flags.
impl BitXor for Qualif
impl BitXor for Qualiftype Output = Qualif
The resulting type after applying the ^ operator.
fn bitxor(self, other: Qualif) -> Qualif
fn bitxor(self, other: Qualif) -> QualifReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for Qualif
impl BitXorAssign for Qualiffn bitxor_assign(&mut self, other: Qualif)
fn bitxor_assign(&mut self, other: Qualif)Toggles the set of flags.
impl BitAnd for Qualif
impl BitAnd for Qualiftype Output = Qualif
The resulting type after applying the & operator.
fn bitand(self, other: Qualif) -> Qualif
fn bitand(self, other: Qualif) -> QualifReturns the intersection between the two sets of flags.
impl BitAndAssign for Qualif
impl BitAndAssign for Qualiffn bitand_assign(&mut self, other: Qualif)
fn bitand_assign(&mut self, other: Qualif)Disables all flags disabled in the set.
impl Sub for Qualif
impl Sub for Qualiftype Output = Qualif
The resulting type after applying the - operator.
fn sub(self, other: Qualif) -> Qualif
fn sub(self, other: Qualif) -> QualifReturns the set difference of the two sets of flags.
impl SubAssign for Qualif
impl SubAssign for Qualiffn sub_assign(&mut self, other: Qualif)
fn sub_assign(&mut self, other: Qualif)Disables all flags enabled in the set.
impl Not for Qualif
impl Not for Qualiftype Output = Qualif
The resulting type after applying the ! operator.
fn not(self) -> Qualif
fn not(self) -> QualifReturns the complement of this set of flags.
impl Extend<Qualif> for Qualif
impl Extend<Qualif> for Qualiffn extend<T: IntoIterator<Item = Qualif>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Qualif>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<Qualif> for Qualif
impl FromIterator<Qualif> for Qualiffn from_iter<T: IntoIterator<Item = Qualif>>(iterator: T) -> Qualif
fn from_iter<T: IntoIterator<Item = Qualif>>(iterator: T) -> QualifCreates a value from an iterator. Read more