pub struct LogFlags { /* private fields */ }
Implementations§
Source§impl LogFlags
impl LogFlags
pub const JOINT_MOTOR_TORQUES: LogFlags
pub const JOINT_USER_TORQUES: LogFlags
pub const JOINT_TORQUES: LogFlags
Sourcepub fn from_bits(bits: i32) -> Option<LogFlags>
pub fn from_bits(bits: i32) -> Option<LogFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> LogFlags
pub const fn from_bits_truncate(bits: i32) -> LogFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> LogFlags
pub const unsafe fn from_bits_unchecked(bits: i32) -> LogFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: LogFlags) -> bool
pub const fn intersects(&self, other: LogFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for LogFlags
impl BitAndAssign for LogFlags
Source§fn bitand_assign(&mut self, other: LogFlags)
fn bitand_assign(&mut self, other: LogFlags)
Disables all flags disabled in the set.
Source§impl BitOrAssign for LogFlags
impl BitOrAssign for LogFlags
Source§fn bitor_assign(&mut self, other: LogFlags)
fn bitor_assign(&mut self, other: LogFlags)
Adds the set of flags.
Source§impl BitXorAssign for LogFlags
impl BitXorAssign for LogFlags
Source§fn bitxor_assign(&mut self, other: LogFlags)
fn bitxor_assign(&mut self, other: LogFlags)
Toggles the set of flags.
Source§impl Extend<LogFlags> for LogFlags
impl Extend<LogFlags> for LogFlags
Source§fn extend<T: IntoIterator<Item = LogFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = LogFlags>>(&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<LogFlags> for LogFlags
impl FromIterator<LogFlags> for LogFlags
Source§impl Ord for LogFlags
impl Ord for LogFlags
Source§impl PartialOrd for LogFlags
impl PartialOrd for LogFlags
Source§impl SubAssign for LogFlags
impl SubAssign for LogFlags
Source§fn sub_assign(&mut self, other: LogFlags)
fn sub_assign(&mut self, other: LogFlags)
Disables all flags enabled in the set.
impl Copy for LogFlags
impl Eq for LogFlags
impl StructuralPartialEq for LogFlags
Auto Trait Implementations§
impl Freeze for LogFlags
impl RefUnwindSafe for LogFlags
impl Send for LogFlags
impl Sync for LogFlags
impl Unpin for LogFlags
impl UnwindSafe for LogFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.