pub struct TypeIdOptions {
bits: u32,
}Expand description
Options for typeid_for_fnabi and typeid_for_fnsig.
Fields
bits: u32Implementations
sourceimpl TypeIdOptions
impl TypeIdOptions
pub const NO_OPTIONS: TypeIdOptions = _
pub const GENERALIZE_POINTERS: TypeIdOptions = _
pub const GENERALIZE_REPR_C: TypeIdOptions = _
sourcepub const fn empty() -> TypeIdOptions
pub const fn empty() -> TypeIdOptions
Returns an empty set of flags
sourcepub const fn all() -> TypeIdOptions
pub const fn all() -> TypeIdOptions
Returns the set containing all flags.
sourcepub fn from_bits(bits: u32) -> Option<TypeIdOptions>
pub fn from_bits(bits: u32) -> Option<TypeIdOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> TypeIdOptions
pub const fn from_bits_truncate(bits: u32) -> TypeIdOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> TypeIdOptions
pub const unsafe fn from_bits_unchecked(bits: u32) -> TypeIdOptions
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: TypeIdOptions) -> bool
pub const fn intersects(&self, other: TypeIdOptions) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: TypeIdOptions) -> bool
pub const fn contains(&self, other: TypeIdOptions) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: TypeIdOptions)
pub fn insert(&mut self, other: TypeIdOptions)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: TypeIdOptions)
pub fn remove(&mut self, other: TypeIdOptions)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: TypeIdOptions)
pub fn toggle(&mut self, other: TypeIdOptions)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: TypeIdOptions, value: bool)
pub fn set(&mut self, other: TypeIdOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for TypeIdOptions
impl Binary for TypeIdOptions
sourceimpl BitAnd<TypeIdOptions> for TypeIdOptions
impl BitAnd<TypeIdOptions> for TypeIdOptions
sourcefn bitand(self, other: TypeIdOptions) -> TypeIdOptions
fn bitand(self, other: TypeIdOptions) -> TypeIdOptions
Returns the intersection between the two sets of flags.
type Output = TypeIdOptions
type Output = TypeIdOptions
The resulting type after applying the & operator.
sourceimpl BitAndAssign<TypeIdOptions> for TypeIdOptions
impl BitAndAssign<TypeIdOptions> for TypeIdOptions
sourcefn bitand_assign(&mut self, other: TypeIdOptions)
fn bitand_assign(&mut self, other: TypeIdOptions)
Disables all flags disabled in the set.
sourceimpl BitOr<TypeIdOptions> for TypeIdOptions
impl BitOr<TypeIdOptions> for TypeIdOptions
sourcefn bitor(self, other: TypeIdOptions) -> TypeIdOptions
fn bitor(self, other: TypeIdOptions) -> TypeIdOptions
Returns the union of the two sets of flags.
type Output = TypeIdOptions
type Output = TypeIdOptions
The resulting type after applying the | operator.
sourceimpl BitOrAssign<TypeIdOptions> for TypeIdOptions
impl BitOrAssign<TypeIdOptions> for TypeIdOptions
sourcefn bitor_assign(&mut self, other: TypeIdOptions)
fn bitor_assign(&mut self, other: TypeIdOptions)
Adds the set of flags.
sourceimpl BitXor<TypeIdOptions> for TypeIdOptions
impl BitXor<TypeIdOptions> for TypeIdOptions
sourcefn bitxor(self, other: TypeIdOptions) -> TypeIdOptions
fn bitxor(self, other: TypeIdOptions) -> TypeIdOptions
Returns the left flags, but with all the right flags toggled.
type Output = TypeIdOptions
type Output = TypeIdOptions
The resulting type after applying the ^ operator.
sourceimpl BitXorAssign<TypeIdOptions> for TypeIdOptions
impl BitXorAssign<TypeIdOptions> for TypeIdOptions
sourcefn bitxor_assign(&mut self, other: TypeIdOptions)
fn bitxor_assign(&mut self, other: TypeIdOptions)
Toggles the set of flags.
sourceimpl Clone for TypeIdOptions
impl Clone for TypeIdOptions
sourcefn clone(&self) -> TypeIdOptions
fn clone(&self) -> TypeIdOptions
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 TypeIdOptions
impl Debug for TypeIdOptions
sourceimpl Extend<TypeIdOptions> for TypeIdOptions
impl Extend<TypeIdOptions> for TypeIdOptions
sourcefn extend<T: IntoIterator<Item = TypeIdOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TypeIdOptions>>(&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<TypeIdOptions> for TypeIdOptions
impl FromIterator<TypeIdOptions> for TypeIdOptions
sourcefn from_iter<T: IntoIterator<Item = TypeIdOptions>>(
iterator: T
) -> TypeIdOptions
fn from_iter<T: IntoIterator<Item = TypeIdOptions>>(
iterator: T
) -> TypeIdOptions
Creates a value from an iterator. Read more
sourceimpl Hash for TypeIdOptions
impl Hash for TypeIdOptions
sourceimpl LowerHex for TypeIdOptions
impl LowerHex for TypeIdOptions
sourceimpl Not for TypeIdOptions
impl Not for TypeIdOptions
sourcefn not(self) -> TypeIdOptions
fn not(self) -> TypeIdOptions
Returns the complement of this set of flags.
type Output = TypeIdOptions
type Output = TypeIdOptions
The resulting type after applying the ! operator.
sourceimpl Octal for TypeIdOptions
impl Octal for TypeIdOptions
sourceimpl Ord for TypeIdOptions
impl Ord for TypeIdOptions
sourceimpl PartialEq<TypeIdOptions> for TypeIdOptions
impl PartialEq<TypeIdOptions> for TypeIdOptions
sourcefn eq(&self, other: &TypeIdOptions) -> bool
fn eq(&self, other: &TypeIdOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TypeIdOptions) -> bool
fn ne(&self, other: &TypeIdOptions) -> bool
This method tests for !=.
sourceimpl PartialOrd<TypeIdOptions> for TypeIdOptions
impl PartialOrd<TypeIdOptions> for TypeIdOptions
sourcefn partial_cmp(&self, other: &TypeIdOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeIdOptions) -> 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<TypeIdOptions> for TypeIdOptions
impl Sub<TypeIdOptions> for TypeIdOptions
sourcefn sub(self, other: TypeIdOptions) -> TypeIdOptions
fn sub(self, other: TypeIdOptions) -> TypeIdOptions
Returns the set difference of the two sets of flags.
type Output = TypeIdOptions
type Output = TypeIdOptions
The resulting type after applying the - operator.
sourceimpl SubAssign<TypeIdOptions> for TypeIdOptions
impl SubAssign<TypeIdOptions> for TypeIdOptions
sourcefn sub_assign(&mut self, other: TypeIdOptions)
fn sub_assign(&mut self, other: TypeIdOptions)
Disables all flags enabled in the set.
sourceimpl UpperHex for TypeIdOptions
impl UpperHex for TypeIdOptions
impl Copy for TypeIdOptions
impl Eq for TypeIdOptions
impl StructuralEq for TypeIdOptions
impl StructuralPartialEq for TypeIdOptions
Auto Trait Implementations
impl RefUnwindSafe for TypeIdOptions
impl Send for TypeIdOptions
impl Sync for TypeIdOptions
impl Unpin for TypeIdOptions
impl UnwindSafe for TypeIdOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 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: 4 bytes