InlineAsmOptions in rustc_ast::ast - Rust (original) (raw)
Struct InlineAsmOptions
pub struct InlineAsmOptions(u16);
Get a flags value with all bits unset.
Get a flags value with all known bits set.
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Convert from a bits value.
This method will return None
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
Convert from a bits value exactly.
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t correspond to any named flag.
Whether all bits in this flags value are unset.
Whether all known bits in this flags value are set.
Whether any set bits in a source flags value are also set in a target flags value.
Whether all set bits in a source flags value are also set in a target flags value.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.remove
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
Call insert
when value
is true
or remove
when value
is false
.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.difference
won’t truncate other
, but the !
operator will.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
The bitwise and (&
) of the bits in two flags values.
The resulting type after applying the &
operator.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The resulting type after applying the |
operator.
The bitwise or (|
) of the bits in two flags values.
The bitwise exclusive-or (^
) of the bits in two flags values.
The resulting type after applying the ^
operator.
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise or (|
) of the bits in each flags value.
🔬This is a nightly-only experimental API. (extend_one
)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one
)
Reserves capacity in a collection for the given number of additional elements. Read more
The set of defined flags.
The underlying bits type.
Get the underlying bits value. Read more
Convert from a bits value exactly.
Get a flags value with all bits unset.
Get a flags value with all known bits set.
This method will return true
if any unknown bits are set.
Convert from a bits value, unsetting any unknown bits.
Get a flags value with the bits of a flag with the given name set. Read more
Yield a set of contained flags values. Read more
Yield a set of contained named flags values. Read more
Whether all bits in this flags value are unset.
Whether all known bits in this flags value are set.
Whether any set bits in a source flags value are also set in a target flags value.
Whether all set bits in a source flags value are also set in a target flags value.
Remove any unknown bits from the flags.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
). Read more
The bitwise exclusive-or (^
) of the bits in two flags values.
Unsets all bits in the flags.
The bitwise and (&
) of the bits in two flags values.
The bitwise or (|
) of the bits in two flags values.
The intersection of a source flags value with the complement of a target flags value (&!
). Read more
The bitwise exclusive-or (^
) of the bits in two flags values.
The bitwise negation (!
) of the bits in a flags value, truncating the result.
The bitwise or (|
) of the bits in each flags value.
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The bitwise negation (!
) of the bits in a flags value, truncating the result.
The resulting type after applying the !
operator.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.difference
won’t truncate other
, but the !
operator will.
The resulting type after applying the -
operator.
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.difference
won’t truncate other
, but the !
operator will.
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