[−]Struct rustc::hir::CodegenFnAttrFlags
🔬 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: u32
🔬 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 CodegenFnAttrFlags
impl CodegenFnAttrFlagspub const COLD: CodegenFnAttrFlags
🔬 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], a hint to LLVM that this function, when called, is never on the hot path
pub const ALLOCATOR: CodegenFnAttrFlags
🔬 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], a hint to LLVM that the pointer returned from this function is never null
pub const UNWIND: CodegenFnAttrFlags
🔬 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], an indicator that this function may unwind despite what its ABI signature may otherwise imply
pub const RUSTC_ALLOCATOR_NOUNWIND: CodegenFnAttrFlags
🔬 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?
#[rust_allocator_nounwind], an indicator that an imported FFI function will never unwind. Probably obsolete by recent changes with #[unwind], but hasn't been removed/migrated yet
pub const NAKED: CodegenFnAttrFlags
🔬 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], indicates to LLVM that no function prologue/epilogue should be generated
pub const NO_MANGLE: CodegenFnAttrFlags
🔬 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], the function's name should be the same as its symbol
pub const RUSTC_STD_INTERNAL_SYMBOL: CodegenFnAttrFlags
🔬 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], and indicator that this symbol is a "weird symbol" for the standard library in that it has slightly different linkage, visibility, and reachability rules.
pub const NO_DEBUG: CodegenFnAttrFlags
🔬 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], indicates that no debugging information should be generated for this function by LLVM
pub const THREAD_LOCAL: CodegenFnAttrFlags
🔬 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?
#[thread_local], indicates a static is actually a thread local piece of memory
pub const USED: CodegenFnAttrFlags
🔬 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?
#[used], indicates that LLVM can't eliminate this function (but the linker can!)
pub fn empty() -> CodegenFnAttrFlags
pub fn empty() -> CodegenFnAttrFlags🔬 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() -> CodegenFnAttrFlags
pub fn all() -> CodegenFnAttrFlags🔬 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) -> u32
pub fn bits(&self) -> u32🔬 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: u32) -> Option<CodegenFnAttrFlags>
pub fn from_bits(bits: u32) -> Option<CodegenFnAttrFlags>🔬 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: u32) -> CodegenFnAttrFlags
pub fn from_bits_truncate(bits: u32) -> CodegenFnAttrFlags🔬 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: CodegenFnAttrFlags) -> bool
pub fn intersects(&self, other: CodegenFnAttrFlags) -> 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: CodegenFnAttrFlags) -> bool
pub fn contains(&self, other: CodegenFnAttrFlags) -> 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: CodegenFnAttrFlags)
pub fn insert(&mut self, other: CodegenFnAttrFlags)🔬 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: CodegenFnAttrFlags)
pub fn remove(&mut self, other: CodegenFnAttrFlags)🔬 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: CodegenFnAttrFlags)
pub fn toggle(&mut self, other: CodegenFnAttrFlags)🔬 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: CodegenFnAttrFlags, value: bool)
pub fn set(&mut self, other: CodegenFnAttrFlags, 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 CodegenFnAttrFlags
impl Copy for CodegenFnAttrFlagsimpl PartialEq for CodegenFnAttrFlags
impl PartialEq for CodegenFnAttrFlagsfn eq(&self, other: &CodegenFnAttrFlags) -> bool
fn eq(&self, other: &CodegenFnAttrFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CodegenFnAttrFlags) -> bool
fn ne(&self, other: &CodegenFnAttrFlags) -> boolThis method tests for !=.
impl Eq for CodegenFnAttrFlags
impl Eq for CodegenFnAttrFlagsfn assert_receiver_is_total_eq(&self)
fn assert_receiver_is_total_eq(&self)impl Clone for CodegenFnAttrFlags
impl Clone for CodegenFnAttrFlagsfn clone(&self) -> CodegenFnAttrFlags
fn clone(&self) -> CodegenFnAttrFlagsReturns 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 CodegenFnAttrFlags
impl PartialOrd for CodegenFnAttrFlagsfn partial_cmp(&self, other: &CodegenFnAttrFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &CodegenFnAttrFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &CodegenFnAttrFlags) -> bool
fn lt(&self, other: &CodegenFnAttrFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &CodegenFnAttrFlags) -> bool
fn le(&self, other: &CodegenFnAttrFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &CodegenFnAttrFlags) -> bool
fn gt(&self, other: &CodegenFnAttrFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &CodegenFnAttrFlags) -> bool
fn ge(&self, other: &CodegenFnAttrFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for CodegenFnAttrFlags
impl Ord for CodegenFnAttrFlagsfn cmp(&self, other: &CodegenFnAttrFlags) -> Ordering
fn cmp(&self, other: &CodegenFnAttrFlags) -> 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 CodegenFnAttrFlags
impl Hash for CodegenFnAttrFlagsfn 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 Encodable for CodegenFnAttrFlags[src]
impl Encodable for CodegenFnAttrFlagsfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &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 CodegenFnAttrFlags[src]
impl Decodable for CodegenFnAttrFlagsfn decode<__D: Decoder>(d: &mut __D) -> Result<CodegenFnAttrFlags, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<CodegenFnAttrFlags, __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 CodegenFnAttrFlags
impl Debug for CodegenFnAttrFlagsimpl Binary for CodegenFnAttrFlags
impl Binary for CodegenFnAttrFlagsimpl Octal for CodegenFnAttrFlags
impl Octal for CodegenFnAttrFlagsimpl LowerHex for CodegenFnAttrFlags
impl LowerHex for CodegenFnAttrFlagsimpl UpperHex for CodegenFnAttrFlags
impl UpperHex for CodegenFnAttrFlagsimpl BitOr for CodegenFnAttrFlags
impl BitOr for CodegenFnAttrFlagstype Output = CodegenFnAttrFlags
The resulting type after applying the | operator.
fn bitor(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlags
fn bitor(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlagsReturns the union of the two sets of flags.
impl BitOrAssign for CodegenFnAttrFlags
impl BitOrAssign for CodegenFnAttrFlagsfn bitor_assign(&mut self, other: CodegenFnAttrFlags)
fn bitor_assign(&mut self, other: CodegenFnAttrFlags)Adds the set of flags.
impl BitXor for CodegenFnAttrFlags
impl BitXor for CodegenFnAttrFlagstype Output = CodegenFnAttrFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlags
fn bitxor(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for CodegenFnAttrFlags
impl BitXorAssign for CodegenFnAttrFlagsfn bitxor_assign(&mut self, other: CodegenFnAttrFlags)
fn bitxor_assign(&mut self, other: CodegenFnAttrFlags)Toggles the set of flags.
impl BitAnd for CodegenFnAttrFlags
impl BitAnd for CodegenFnAttrFlagstype Output = CodegenFnAttrFlags
The resulting type after applying the & operator.
fn bitand(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlags
fn bitand(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for CodegenFnAttrFlags
impl BitAndAssign for CodegenFnAttrFlagsfn bitand_assign(&mut self, other: CodegenFnAttrFlags)
fn bitand_assign(&mut self, other: CodegenFnAttrFlags)Disables all flags disabled in the set.
impl Sub for CodegenFnAttrFlags
impl Sub for CodegenFnAttrFlagstype Output = CodegenFnAttrFlags
The resulting type after applying the - operator.
fn sub(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlags
fn sub(self, other: CodegenFnAttrFlags) -> CodegenFnAttrFlagsReturns the set difference of the two sets of flags.
impl SubAssign for CodegenFnAttrFlags
impl SubAssign for CodegenFnAttrFlagsfn sub_assign(&mut self, other: CodegenFnAttrFlags)
fn sub_assign(&mut self, other: CodegenFnAttrFlags)Disables all flags enabled in the set.
impl Not for CodegenFnAttrFlags
impl Not for CodegenFnAttrFlagstype Output = CodegenFnAttrFlags
The resulting type after applying the ! operator.
fn not(self) -> CodegenFnAttrFlags
fn not(self) -> CodegenFnAttrFlagsReturns the complement of this set of flags.
impl Extend<CodegenFnAttrFlags> for CodegenFnAttrFlags
impl Extend<CodegenFnAttrFlags> for CodegenFnAttrFlagsfn extend<T: IntoIterator<Item = CodegenFnAttrFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CodegenFnAttrFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<CodegenFnAttrFlags> for CodegenFnAttrFlags
impl FromIterator<CodegenFnAttrFlags> for CodegenFnAttrFlagsfn from_iter<T: IntoIterator<Item = CodegenFnAttrFlags>>(
iterator: T
) -> CodegenFnAttrFlags
fn from_iter<T: IntoIterator<Item = CodegenFnAttrFlags>>(
iterator: T
) -> CodegenFnAttrFlagsCreates a value from an iterator. Read more
impl<'hir> HashStable<StableHashingContext<'hir>> for CodegenFnAttrFlags[src]
impl<'hir> HashStable<StableHashingContext<'hir>> for CodegenFnAttrFlagsfn 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 CodegenFnAttrFlags
impl Send for CodegenFnAttrFlagsimpl Sync for CodegenFnAttrFlags
impl Sync for CodegenFnAttrFlagsBlanket Implementations
impl<T> MaybeResult for T[src]
impl<T> MaybeResult for Tfn from_ok(T) -> T[src]
fn from_ok(T) -> T🔬 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 map_same<F>(Self, F) -> T where
F: FnOnce(T) -> T, [src]
fn map_same<F>(Self, F) -> T where
F: FnOnce(T) -> T, 🔬 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<'a, T> Captures for T where
T: ?Sized, [src]
impl<'a, T> Captures for T where
T: ?Sized, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 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> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized, [src]
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized, fn encode<E>(&self, e: &mut E) -> Result<(), <E as Encoder>::Error> where
E: Encoder, [src]
fn encode<E>(&self, e: &mut E) -> Result<(), <E as Encoder>::Error> where
E: Encoder, 🔬 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<T> Decodable for T where
T: UseSpecializedDecodable, [src]
impl<T> Decodable for T where
T: UseSpecializedDecodable, fn decode<D>(d: &mut D) -> Result<T, <D as Decoder>::Error> where
D: Decoder, [src]
fn decode<D>(d: &mut D) -> Result<T, <D as Decoder>::Error> where
D: Decoder, 🔬 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<E> SpecializationError for E[src]
impl<E> SpecializationError for Efn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, [src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, 🔬 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?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for T