pub struct MarkerTraits(/* private fields */);Expand description
Bitflags tracking implementation of Rust’s marker/auto traits.
Implementations§
Source§impl MarkerTraits
impl MarkerTraits
Sourcepub const COPY: MarkerTraits
pub const COPY: MarkerTraits
Type implements Copy
Sourcepub const SEND: MarkerTraits
pub const SEND: MarkerTraits
Type implements Send
Sourcepub const SYNC: MarkerTraits
pub const SYNC: MarkerTraits
Type implements Sync
Sourcepub const EQ: MarkerTraits
pub const EQ: MarkerTraits
Type implements Eq (not just PartialEq)
Sourcepub const UNPIN: MarkerTraits
pub const UNPIN: MarkerTraits
Type implements Unpin
Sourcepub const UNWIND_SAFE: MarkerTraits
pub const UNWIND_SAFE: MarkerTraits
Type implements UnwindSafe
Sourcepub const REF_UNWIND_SAFE: MarkerTraits
pub const REF_UNWIND_SAFE: MarkerTraits
Type implements RefUnwindSafe
Sourcepub const fn empty() -> MarkerTraits
pub const fn empty() -> MarkerTraits
An empty set of flags.
Sourcepub const fn contains(self, other: MarkerTraits) -> bool
pub const fn contains(self, other: MarkerTraits) -> bool
Returns true if all flags in other are contained in self.
Sourcepub fn insert(&mut self, other: MarkerTraits)
pub fn insert(&mut self, other: MarkerTraits)
Inserts the flags in other into self.
Sourcepub fn remove(&mut self, other: MarkerTraits)
pub fn remove(&mut self, other: MarkerTraits)
Removes the flags in other from self.
Sourcepub const fn union(self, other: MarkerTraits) -> MarkerTraits
pub const fn union(self, other: MarkerTraits) -> MarkerTraits
Returns the union of self and other.
Sourcepub const fn intersection(self, other: MarkerTraits) -> MarkerTraits
pub const fn intersection(self, other: MarkerTraits) -> MarkerTraits
Returns the intersection of self and other.
Sourcepub const fn from_bits_retain(bits: u8) -> MarkerTraits
pub const fn from_bits_retain(bits: u8) -> MarkerTraits
Creates from raw bits (unchecked).
Trait Implementations§
Source§impl BitAnd for MarkerTraits
impl BitAnd for MarkerTraits
Source§type Output = MarkerTraits
type Output = MarkerTraits
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: MarkerTraits) -> MarkerTraits
fn bitand(self, rhs: MarkerTraits) -> MarkerTraits
Performs the
& operation. Read moreSource§impl BitAndAssign for MarkerTraits
impl BitAndAssign for MarkerTraits
Source§fn bitand_assign(&mut self, rhs: MarkerTraits)
fn bitand_assign(&mut self, rhs: MarkerTraits)
Performs the
&= operation. Read moreSource§impl BitOr for MarkerTraits
impl BitOr for MarkerTraits
Source§type Output = MarkerTraits
type Output = MarkerTraits
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: MarkerTraits) -> MarkerTraits
fn bitor(self, rhs: MarkerTraits) -> MarkerTraits
Performs the
| operation. Read moreSource§impl BitOrAssign for MarkerTraits
impl BitOrAssign for MarkerTraits
Source§fn bitor_assign(&mut self, rhs: MarkerTraits)
fn bitor_assign(&mut self, rhs: MarkerTraits)
Performs the
|= operation. Read moreSource§impl BitXor for MarkerTraits
impl BitXor for MarkerTraits
Source§type Output = MarkerTraits
type Output = MarkerTraits
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: MarkerTraits) -> MarkerTraits
fn bitxor(self, rhs: MarkerTraits) -> MarkerTraits
Performs the
^ operation. Read moreSource§impl BitXorAssign for MarkerTraits
impl BitXorAssign for MarkerTraits
Source§fn bitxor_assign(&mut self, rhs: MarkerTraits)
fn bitxor_assign(&mut self, rhs: MarkerTraits)
Performs the
^= operation. Read moreSource§impl Clone for MarkerTraits
impl Clone for MarkerTraits
Source§fn clone(&self) -> MarkerTraits
fn clone(&self) -> MarkerTraits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkerTraits
impl Debug for MarkerTraits
Source§impl Default for MarkerTraits
impl Default for MarkerTraits
Source§fn default() -> MarkerTraits
fn default() -> MarkerTraits
Returns the “default value” for a type. Read more
Source§impl Facet<'_> for MarkerTraits
impl Facet<'_> for MarkerTraits
Source§impl Hash for MarkerTraits
impl Hash for MarkerTraits
Source§impl Not for MarkerTraits
impl Not for MarkerTraits
Source§type Output = MarkerTraits
type Output = MarkerTraits
The resulting type after applying the
! operator.Source§fn not(self) -> MarkerTraits
fn not(self) -> MarkerTraits
Performs the unary
! operation. Read moreSource§impl PartialEq for MarkerTraits
impl PartialEq for MarkerTraits
impl Copy for MarkerTraits
impl Eq for MarkerTraits
impl StructuralPartialEq for MarkerTraits
Auto Trait Implementations§
impl Freeze for MarkerTraits
impl RefUnwindSafe for MarkerTraits
impl Send for MarkerTraits
impl Sync for MarkerTraits
impl Unpin for MarkerTraits
impl UnwindSafe for MarkerTraits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more