Struct rustc_target::spec::SanitizerSet
source · [−]pub struct SanitizerSet {
bits: u8,
}Fields
bits: u8Implementations
sourceimpl SanitizerSet
impl SanitizerSet
pub const ADDRESS: SanitizerSet = _
pub const LEAK: SanitizerSet = _
pub const MEMORY: SanitizerSet = _
pub const THREAD: SanitizerSet = _
pub const HWADDRESS: SanitizerSet = _
pub const CFI: SanitizerSet = _
pub const MEMTAG: SanitizerSet = _
pub const SHADOWCALLSTACK: SanitizerSet = _
sourcepub const fn empty() -> SanitizerSet
pub const fn empty() -> SanitizerSet
Returns an empty set of flags
sourcepub const fn all() -> SanitizerSet
pub const fn all() -> SanitizerSet
Returns the set containing all flags.
sourcepub fn from_bits(bits: u8) -> Option<SanitizerSet>
pub fn from_bits(bits: u8) -> Option<SanitizerSet>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u8) -> SanitizerSet
pub const fn from_bits_truncate(bits: u8) -> SanitizerSet
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> SanitizerSet
pub const unsafe fn from_bits_unchecked(bits: u8) -> SanitizerSet
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: SanitizerSet) -> bool
pub const fn intersects(&self, other: SanitizerSet) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: SanitizerSet) -> bool
pub const fn contains(&self, other: SanitizerSet) -> bool
Returns true all of the flags in other are contained within self.
sourcepub fn insert(&mut self, other: SanitizerSet)
pub fn insert(&mut self, other: SanitizerSet)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: SanitizerSet)
pub fn remove(&mut self, other: SanitizerSet)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: SanitizerSet)
pub fn toggle(&mut self, other: SanitizerSet)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: SanitizerSet, value: bool)
pub fn set(&mut self, other: SanitizerSet, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for SanitizerSet
impl Binary for SanitizerSet
sourceimpl BitAnd<SanitizerSet> for SanitizerSet
impl BitAnd<SanitizerSet> for SanitizerSet
sourcefn bitand(self, other: SanitizerSet) -> SanitizerSet
fn bitand(self, other: SanitizerSet) -> SanitizerSet
Returns the intersection between the two sets of flags.
type Output = SanitizerSet
type Output = SanitizerSet
The resulting type after applying the & operator.
sourceimpl BitAndAssign<SanitizerSet> for SanitizerSet
impl BitAndAssign<SanitizerSet> for SanitizerSet
sourcefn bitand_assign(&mut self, other: SanitizerSet)
fn bitand_assign(&mut self, other: SanitizerSet)
Disables all flags disabled in the set.
sourceimpl BitOr<SanitizerSet> for SanitizerSet
impl BitOr<SanitizerSet> for SanitizerSet
sourcefn bitor(self, other: SanitizerSet) -> SanitizerSet
fn bitor(self, other: SanitizerSet) -> SanitizerSet
Returns the union of the two sets of flags.
type Output = SanitizerSet
type Output = SanitizerSet
The resulting type after applying the | operator.
sourceimpl BitOrAssign<SanitizerSet> for SanitizerSet
impl BitOrAssign<SanitizerSet> for SanitizerSet
sourcefn bitor_assign(&mut self, other: SanitizerSet)
fn bitor_assign(&mut self, other: SanitizerSet)
Adds the set of flags.
sourceimpl BitXor<SanitizerSet> for SanitizerSet
impl BitXor<SanitizerSet> for SanitizerSet
sourcefn bitxor(self, other: SanitizerSet) -> SanitizerSet
fn bitxor(self, other: SanitizerSet) -> SanitizerSet
Returns the left flags, but with all the right flags toggled.
type Output = SanitizerSet
type Output = SanitizerSet
The resulting type after applying the ^ operator.
sourceimpl BitXorAssign<SanitizerSet> for SanitizerSet
impl BitXorAssign<SanitizerSet> for SanitizerSet
sourcefn bitxor_assign(&mut self, other: SanitizerSet)
fn bitxor_assign(&mut self, other: SanitizerSet)
Toggles the set of flags.
sourceimpl Clone for SanitizerSet
impl Clone for SanitizerSet
sourcefn clone(&self) -> SanitizerSet
fn clone(&self) -> SanitizerSet
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 SanitizerSet
impl Debug for SanitizerSet
sourceimpl<__D: Decoder> Decodable<__D> for SanitizerSet
impl<__D: Decoder> Decodable<__D> for SanitizerSet
sourceimpl Default for SanitizerSet
impl Default for SanitizerSet
sourcefn default() -> SanitizerSet
fn default() -> SanitizerSet
Returns the “default value” for a type. Read more
sourceimpl Display for SanitizerSet
impl Display for SanitizerSet
Formats a sanitizer set as a comma separated list of sanitizers’ names.
sourceimpl Extend<SanitizerSet> for SanitizerSet
impl Extend<SanitizerSet> for SanitizerSet
sourcefn extend<T: IntoIterator<Item = SanitizerSet>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SanitizerSet>>(&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<SanitizerSet> for SanitizerSet
impl FromIterator<SanitizerSet> for SanitizerSet
sourcefn from_iter<T: IntoIterator<Item = SanitizerSet>>(iterator: T) -> SanitizerSet
fn from_iter<T: IntoIterator<Item = SanitizerSet>>(iterator: T) -> SanitizerSet
Creates a value from an iterator. Read more
sourceimpl Hash for SanitizerSet
impl Hash for SanitizerSet
sourceimpl<CTX> HashStable<CTX> for SanitizerSet
impl<CTX> HashStable<CTX> for SanitizerSet
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher)
sourceimpl IntoIterator for SanitizerSet
impl IntoIterator for SanitizerSet
type Item = SanitizerSet
type Item = SanitizerSet
The type of the elements being iterated over.
type IntoIter = IntoIter<SanitizerSet, Global>
type IntoIter = IntoIter<SanitizerSet, Global>
Which kind of iterator are we turning this into?
sourceimpl LowerHex for SanitizerSet
impl LowerHex for SanitizerSet
sourceimpl Not for SanitizerSet
impl Not for SanitizerSet
sourcefn not(self) -> SanitizerSet
fn not(self) -> SanitizerSet
Returns the complement of this set of flags.
type Output = SanitizerSet
type Output = SanitizerSet
The resulting type after applying the ! operator.
sourceimpl Octal for SanitizerSet
impl Octal for SanitizerSet
sourceimpl Ord for SanitizerSet
impl Ord for SanitizerSet
sourceimpl PartialEq<SanitizerSet> for SanitizerSet
impl PartialEq<SanitizerSet> for SanitizerSet
sourcefn eq(&self, other: &SanitizerSet) -> bool
fn eq(&self, other: &SanitizerSet) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SanitizerSet) -> bool
fn ne(&self, other: &SanitizerSet) -> bool
This method tests for !=.
sourceimpl PartialOrd<SanitizerSet> for SanitizerSet
impl PartialOrd<SanitizerSet> for SanitizerSet
sourcefn partial_cmp(&self, other: &SanitizerSet) -> Option<Ordering>
fn partial_cmp(&self, other: &SanitizerSet) -> 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<SanitizerSet> for SanitizerSet
impl Sub<SanitizerSet> for SanitizerSet
sourcefn sub(self, other: SanitizerSet) -> SanitizerSet
fn sub(self, other: SanitizerSet) -> SanitizerSet
Returns the set difference of the two sets of flags.
type Output = SanitizerSet
type Output = SanitizerSet
The resulting type after applying the - operator.
sourceimpl SubAssign<SanitizerSet> for SanitizerSet
impl SubAssign<SanitizerSet> for SanitizerSet
sourcefn sub_assign(&mut self, other: SanitizerSet)
fn sub_assign(&mut self, other: SanitizerSet)
Disables all flags enabled in the set.
sourceimpl UpperHex for SanitizerSet
impl UpperHex for SanitizerSet
impl Copy for SanitizerSet
impl Eq for SanitizerSet
impl StructuralEq for SanitizerSet
impl StructuralPartialEq for SanitizerSet
Auto Trait Implementations
impl RefUnwindSafe for SanitizerSet
impl Send for SanitizerSet
impl Sync for SanitizerSet
impl Unpin for SanitizerSet
impl UnwindSafe for SanitizerSet
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: 1 byte