Struct rustc::hir::TransFnAttrFlags
[−]
pub struct TransFnAttrFlags { /* fields omitted */ }🔬 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 TransFnAttrFlags
impl TransFnAttrFlagspub const COLD: TransFnAttrFlags
🔬 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?
COLD: TransFnAttrFlags = TransFnAttrFlags{bits: 1,}
pub const ALLOCATOR: TransFnAttrFlags
🔬 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?
ALLOCATOR: TransFnAttrFlags = TransFnAttrFlags{bits: 2,}
pub const UNWIND: TransFnAttrFlags
🔬 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?
UNWIND: TransFnAttrFlags = TransFnAttrFlags{bits: 4,}
pub const RUSTC_ALLOCATOR_NOUNWIND: TransFnAttrFlags
🔬 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?
RUSTC_ALLOCATOR_NOUNWIND: TransFnAttrFlags = TransFnAttrFlags{bits: 8,}
pub const NAKED: TransFnAttrFlags
🔬 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?
NAKED: TransFnAttrFlags = TransFnAttrFlags{bits: 16,}
pub const NO_MANGLE: TransFnAttrFlags
🔬 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?
NO_MANGLE: TransFnAttrFlags = TransFnAttrFlags{bits: 32,}
pub const RUSTC_STD_INTERNAL_SYMBOL: TransFnAttrFlags
🔬 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?
RUSTC_STD_INTERNAL_SYMBOL: TransFnAttrFlags = TransFnAttrFlags{bits: 64,}
pub const NO_DEBUG: TransFnAttrFlags
🔬 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?
NO_DEBUG: TransFnAttrFlags = TransFnAttrFlags{bits: 128,}
pub fn empty() -> TransFnAttrFlags
pub fn empty() -> TransFnAttrFlags🔬 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() -> TransFnAttrFlags
pub fn all() -> TransFnAttrFlags🔬 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<TransFnAttrFlags>
pub fn from_bits(bits: u8) -> Option<TransFnAttrFlags>🔬 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) -> TransFnAttrFlags
pub fn from_bits_truncate(bits: u8) -> TransFnAttrFlags🔬 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: TransFnAttrFlags) -> bool
pub fn intersects(&self, other: TransFnAttrFlags) -> 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: TransFnAttrFlags) -> bool
pub fn contains(&self, other: TransFnAttrFlags) -> 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: TransFnAttrFlags)
pub fn insert(&mut self, other: TransFnAttrFlags)🔬 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: TransFnAttrFlags)
pub fn remove(&mut self, other: TransFnAttrFlags)🔬 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: TransFnAttrFlags)
pub fn toggle(&mut self, other: TransFnAttrFlags)🔬 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: TransFnAttrFlags, value: bool)
pub fn set(&mut self, other: TransFnAttrFlags, 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.
Trait Implementations
impl Copy for TransFnAttrFlags
impl Copy for TransFnAttrFlagsimpl PartialEq for TransFnAttrFlags
impl PartialEq for TransFnAttrFlagsfn eq(&self, __arg_0: &TransFnAttrFlags) -> bool
fn eq(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TransFnAttrFlags) -> bool
fn ne(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests for !=.
impl Eq for TransFnAttrFlags
impl Eq for TransFnAttrFlagsimpl Clone for TransFnAttrFlags
impl Clone for TransFnAttrFlagsfn clone(&self) -> TransFnAttrFlags
fn clone(&self) -> TransFnAttrFlagsReturns 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 TransFnAttrFlags
impl PartialOrd for TransFnAttrFlagsfn partial_cmp(&self, __arg_0: &TransFnAttrFlags) -> Option<Ordering>
fn partial_cmp(&self, __arg_0: &TransFnAttrFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &TransFnAttrFlags) -> bool
fn lt(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &TransFnAttrFlags) -> bool
fn le(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &TransFnAttrFlags) -> bool
fn gt(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &TransFnAttrFlags) -> bool
fn ge(&self, __arg_0: &TransFnAttrFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for TransFnAttrFlags
impl Ord for TransFnAttrFlagsfn cmp(&self, __arg_0: &TransFnAttrFlags) -> Ordering
fn cmp(&self, __arg_0: &TransFnAttrFlags) -> 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 TransFnAttrFlags
impl Hash for TransFnAttrFlagsfn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &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 Encodable for TransFnAttrFlags[src]
impl Encodable for TransFnAttrFlagsfn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>🔬 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?
impl Decodable for TransFnAttrFlags[src]
impl Decodable for TransFnAttrFlagsfn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<TransFnAttrFlags, __D::Error>[src]
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<TransFnAttrFlags, __D::Error>🔬 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?
impl Debug for TransFnAttrFlags
impl Debug for TransFnAttrFlagsimpl Binary for TransFnAttrFlags
impl Binary for TransFnAttrFlagsimpl Octal for TransFnAttrFlags
impl Octal for TransFnAttrFlagsimpl LowerHex for TransFnAttrFlags
impl LowerHex for TransFnAttrFlagsimpl UpperHex for TransFnAttrFlags
impl UpperHex for TransFnAttrFlagsimpl BitOr for TransFnAttrFlags
impl BitOr for TransFnAttrFlagstype Output = TransFnAttrFlags
The resulting type after applying the | operator.
fn bitor(self, other: TransFnAttrFlags) -> TransFnAttrFlags
fn bitor(self, other: TransFnAttrFlags) -> TransFnAttrFlagsReturns the union of the two sets of flags.
impl BitOrAssign for TransFnAttrFlags
impl BitOrAssign for TransFnAttrFlagsfn bitor_assign(&mut self, other: TransFnAttrFlags)
fn bitor_assign(&mut self, other: TransFnAttrFlags)Adds the set of flags.
impl BitXor for TransFnAttrFlags
impl BitXor for TransFnAttrFlagstype Output = TransFnAttrFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: TransFnAttrFlags) -> TransFnAttrFlags
fn bitxor(self, other: TransFnAttrFlags) -> TransFnAttrFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for TransFnAttrFlags
impl BitXorAssign for TransFnAttrFlagsfn bitxor_assign(&mut self, other: TransFnAttrFlags)
fn bitxor_assign(&mut self, other: TransFnAttrFlags)Toggles the set of flags.
impl BitAnd for TransFnAttrFlags
impl BitAnd for TransFnAttrFlagstype Output = TransFnAttrFlags
The resulting type after applying the & operator.
fn bitand(self, other: TransFnAttrFlags) -> TransFnAttrFlags
fn bitand(self, other: TransFnAttrFlags) -> TransFnAttrFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for TransFnAttrFlags
impl BitAndAssign for TransFnAttrFlagsfn bitand_assign(&mut self, other: TransFnAttrFlags)
fn bitand_assign(&mut self, other: TransFnAttrFlags)Disables all flags disabled in the set.
impl Sub for TransFnAttrFlags
impl Sub for TransFnAttrFlagstype Output = TransFnAttrFlags
The resulting type after applying the - operator.
fn sub(self, other: TransFnAttrFlags) -> TransFnAttrFlags
fn sub(self, other: TransFnAttrFlags) -> TransFnAttrFlagsReturns the set difference of the two sets of flags.
impl SubAssign for TransFnAttrFlags
impl SubAssign for TransFnAttrFlagsfn sub_assign(&mut self, other: TransFnAttrFlags)
fn sub_assign(&mut self, other: TransFnAttrFlags)Disables all flags enabled in the set.
impl Not for TransFnAttrFlags
impl Not for TransFnAttrFlagstype Output = TransFnAttrFlags
The resulting type after applying the ! operator.
fn not(self) -> TransFnAttrFlags
fn not(self) -> TransFnAttrFlagsReturns the complement of this set of flags.
impl Extend<TransFnAttrFlags> for TransFnAttrFlags
impl Extend<TransFnAttrFlags> for TransFnAttrFlagsfn extend<T: IntoIterator<Item = TransFnAttrFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TransFnAttrFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<TransFnAttrFlags> for TransFnAttrFlags
impl FromIterator<TransFnAttrFlags> for TransFnAttrFlagsfn from_iter<T: IntoIterator<Item = TransFnAttrFlags>>(
iterator: T
) -> TransFnAttrFlags
fn from_iter<T: IntoIterator<Item = TransFnAttrFlags>>(
iterator: T
) -> TransFnAttrFlagsCreates a value from an iterator. Read more
impl<'hir> HashStable<StableHashingContext<'hir>> for TransFnAttrFlags[src]
impl<'hir> HashStable<StableHashingContext<'hir>> for TransFnAttrFlagsfn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'hir>,
hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut StableHashingContext<'hir>,
hasher: &mut StableHasher<W>
)🔬 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?
Auto Trait Implementations
impl Send for TransFnAttrFlags
impl Send for TransFnAttrFlagsimpl Sync for TransFnAttrFlags
impl Sync for TransFnAttrFlags