pub struct Trace { /* private fields */ }Implementations§
Source§impl Trace
impl Trace
pub const ROBOT_CODE: Trace
pub const IS_ROBORIO: Trace
pub const TEST_MODE: Trace
pub const AUTONOMOUS: Trace
pub const TELEOP: Trace
pub const DISABLED: Trace
Sourcepub fn from_bits(bits: u8) -> Option<Trace>
pub fn from_bits(bits: u8) -> Option<Trace>
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) -> Trace
pub const fn from_bits_truncate(bits: u8) -> Trace
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> Trace
pub const unsafe fn from_bits_unchecked(bits: u8) -> Trace
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Trace) -> bool
pub const fn intersects(&self, other: Trace) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for Trace
impl BitAndAssign for Trace
Source§fn bitand_assign(&mut self, other: Trace)
fn bitand_assign(&mut self, other: Trace)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Trace
impl BitOrAssign for Trace
Source§fn bitor_assign(&mut self, other: Trace)
fn bitor_assign(&mut self, other: Trace)
Adds the set of flags.
Source§impl BitXorAssign for Trace
impl BitXorAssign for Trace
Source§fn bitxor_assign(&mut self, other: Trace)
fn bitxor_assign(&mut self, other: Trace)
Toggles the set of flags.
Source§impl Extend<Trace> for Trace
impl Extend<Trace> for Trace
Source§fn extend<T: IntoIterator<Item = Trace>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Trace>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Trace> for Trace
impl FromIterator<Trace> for Trace
Source§impl Ord for Trace
impl Ord for Trace
Source§impl PartialOrd for Trace
impl PartialOrd for Trace
Source§impl SubAssign for Trace
impl SubAssign for Trace
Source§fn sub_assign(&mut self, other: Trace)
fn sub_assign(&mut self, other: Trace)
Disables all flags enabled in the set.
impl Copy for Trace
impl Eq for Trace
impl StructuralPartialEq for Trace
Auto Trait Implementations§
impl Freeze for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
impl UnwindSafe for Trace
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