Struct rustc_ast::ast::InlineAsmOptions
source · [−]pub struct InlineAsmOptions {
bits: u16,
}Fields
bits: u16Implementations
sourceimpl InlineAsmOptions
impl InlineAsmOptions
pub const PURE: InlineAsmOptions
pub const NOMEM: InlineAsmOptions
pub const READONLY: InlineAsmOptions
pub const PRESERVES_FLAGS: InlineAsmOptions
pub const NORETURN: InlineAsmOptions
pub const NOSTACK: InlineAsmOptions
pub const ATT_SYNTAX: InlineAsmOptions
pub const RAW: InlineAsmOptions
pub const MAY_UNWIND: InlineAsmOptions
sourcepub const fn empty() -> InlineAsmOptions
pub const fn empty() -> InlineAsmOptions
Returns an empty set of flags
sourcepub const fn all() -> InlineAsmOptions
pub const fn all() -> InlineAsmOptions
Returns the set containing all flags.
sourcepub fn from_bits(bits: u16) -> Option<InlineAsmOptions>
pub fn from_bits(bits: u16) -> Option<InlineAsmOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u16) -> InlineAsmOptions
pub const fn from_bits_truncate(bits: u16) -> InlineAsmOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> InlineAsmOptions
pub const unsafe fn from_bits_unchecked(bits: u16) -> InlineAsmOptions
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: InlineAsmOptions) -> bool
pub const fn intersects(&self, other: InlineAsmOptions) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: InlineAsmOptions) -> bool
pub const fn contains(&self, other: InlineAsmOptions) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: InlineAsmOptions)
pub fn insert(&mut self, other: InlineAsmOptions)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: InlineAsmOptions)
pub fn remove(&mut self, other: InlineAsmOptions)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: InlineAsmOptions)
pub fn toggle(&mut self, other: InlineAsmOptions)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: InlineAsmOptions, value: bool)
pub fn set(&mut self, other: InlineAsmOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for InlineAsmOptions
impl Binary for InlineAsmOptions
sourceimpl BitAnd<InlineAsmOptions> for InlineAsmOptions
impl BitAnd<InlineAsmOptions> for InlineAsmOptions
sourcefn bitand(self, other: InlineAsmOptions) -> InlineAsmOptions
fn bitand(self, other: InlineAsmOptions) -> InlineAsmOptions
Returns the intersection between the two sets of flags.
type Output = InlineAsmOptions
type Output = InlineAsmOptions
The resulting type after applying the & operator.
sourceimpl BitAndAssign<InlineAsmOptions> for InlineAsmOptions
impl BitAndAssign<InlineAsmOptions> for InlineAsmOptions
sourcefn bitand_assign(&mut self, other: InlineAsmOptions)
fn bitand_assign(&mut self, other: InlineAsmOptions)
Disables all flags disabled in the set.
sourceimpl BitOr<InlineAsmOptions> for InlineAsmOptions
impl BitOr<InlineAsmOptions> for InlineAsmOptions
sourcefn bitor(self, other: InlineAsmOptions) -> InlineAsmOptions
fn bitor(self, other: InlineAsmOptions) -> InlineAsmOptions
Returns the union of the two sets of flags.
type Output = InlineAsmOptions
type Output = InlineAsmOptions
The resulting type after applying the | operator.
sourceimpl BitOrAssign<InlineAsmOptions> for InlineAsmOptions
impl BitOrAssign<InlineAsmOptions> for InlineAsmOptions
sourcefn bitor_assign(&mut self, other: InlineAsmOptions)
fn bitor_assign(&mut self, other: InlineAsmOptions)
Adds the set of flags.
sourceimpl BitXor<InlineAsmOptions> for InlineAsmOptions
impl BitXor<InlineAsmOptions> for InlineAsmOptions
sourcefn bitxor(self, other: InlineAsmOptions) -> InlineAsmOptions
fn bitxor(self, other: InlineAsmOptions) -> InlineAsmOptions
Returns the left flags, but with all the right flags toggled.
type Output = InlineAsmOptions
type Output = InlineAsmOptions
The resulting type after applying the ^ operator.
sourceimpl BitXorAssign<InlineAsmOptions> for InlineAsmOptions
impl BitXorAssign<InlineAsmOptions> for InlineAsmOptions
sourcefn bitxor_assign(&mut self, other: InlineAsmOptions)
fn bitxor_assign(&mut self, other: InlineAsmOptions)
Toggles the set of flags.
sourceimpl Clone for InlineAsmOptions
impl Clone for InlineAsmOptions
sourcefn clone(&self) -> InlineAsmOptions
fn clone(&self) -> InlineAsmOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InlineAsmOptions
impl Debug for InlineAsmOptions
sourceimpl<__D: Decoder> Decodable<__D> for InlineAsmOptions
impl<__D: Decoder> Decodable<__D> for InlineAsmOptions
sourceimpl<__E: Encoder> Encodable<__E> for InlineAsmOptions
impl<__E: Encoder> Encodable<__E> for InlineAsmOptions
sourceimpl Extend<InlineAsmOptions> for InlineAsmOptions
impl Extend<InlineAsmOptions> for InlineAsmOptions
sourcefn extend<T: IntoIterator<Item = InlineAsmOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = InlineAsmOptions>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<InlineAsmOptions> for InlineAsmOptions
impl FromIterator<InlineAsmOptions> for InlineAsmOptions
sourcefn from_iter<T: IntoIterator<Item = InlineAsmOptions>>(
iterator: T
) -> InlineAsmOptions
fn from_iter<T: IntoIterator<Item = InlineAsmOptions>>(
iterator: T
) -> InlineAsmOptions
Creates a value from an iterator. Read more
sourceimpl Hash for InlineAsmOptions
impl Hash for InlineAsmOptions
sourceimpl<__CTX> HashStable<__CTX> for InlineAsmOptions where
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for InlineAsmOptions where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
sourceimpl LowerHex for InlineAsmOptions
impl LowerHex for InlineAsmOptions
sourceimpl Not for InlineAsmOptions
impl Not for InlineAsmOptions
sourcefn not(self) -> InlineAsmOptions
fn not(self) -> InlineAsmOptions
Returns the complement of this set of flags.
type Output = InlineAsmOptions
type Output = InlineAsmOptions
The resulting type after applying the ! operator.
sourceimpl Octal for InlineAsmOptions
impl Octal for InlineAsmOptions
sourceimpl Ord for InlineAsmOptions
impl Ord for InlineAsmOptions
sourceimpl PartialEq<InlineAsmOptions> for InlineAsmOptions
impl PartialEq<InlineAsmOptions> for InlineAsmOptions
sourcefn eq(&self, other: &InlineAsmOptions) -> bool
fn eq(&self, other: &InlineAsmOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InlineAsmOptions) -> bool
fn ne(&self, other: &InlineAsmOptions) -> bool
This method tests for !=.
sourceimpl PartialOrd<InlineAsmOptions> for InlineAsmOptions
impl PartialOrd<InlineAsmOptions> for InlineAsmOptions
sourcefn partial_cmp(&self, other: &InlineAsmOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &InlineAsmOptions) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Sub<InlineAsmOptions> for InlineAsmOptions
impl Sub<InlineAsmOptions> for InlineAsmOptions
sourcefn sub(self, other: InlineAsmOptions) -> InlineAsmOptions
fn sub(self, other: InlineAsmOptions) -> InlineAsmOptions
Returns the set difference of the two sets of flags.
type Output = InlineAsmOptions
type Output = InlineAsmOptions
The resulting type after applying the - operator.
sourceimpl SubAssign<InlineAsmOptions> for InlineAsmOptions
impl SubAssign<InlineAsmOptions> for InlineAsmOptions
sourcefn sub_assign(&mut self, other: InlineAsmOptions)
fn sub_assign(&mut self, other: InlineAsmOptions)
Disables all flags enabled in the set.
sourceimpl UpperHex for InlineAsmOptions
impl UpperHex for InlineAsmOptions
impl Copy for InlineAsmOptions
impl Eq for InlineAsmOptions
impl StructuralEq for InlineAsmOptions
impl StructuralPartialEq for InlineAsmOptions
Auto Trait Implementations
impl RefUnwindSafe for InlineAsmOptions
impl Send for InlineAsmOptions
impl Sync for InlineAsmOptions
impl Unpin for InlineAsmOptions
impl UnwindSafe for InlineAsmOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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: 2 bytes