pub struct FrameFlags { /* private fields */ }Implementations§
Source§impl FrameFlags
impl FrameFlags
Sourcepub const EFF_FLAG: FrameFlags
pub const EFF_FLAG: FrameFlags
if set, indicate 29 bit extended format
Sourcepub const RTR_FLAG: FrameFlags
pub const RTR_FLAG: FrameFlags
remote transmission request flag
Sourcepub const ERR_FLAG: FrameFlags
pub const ERR_FLAG: FrameFlags
error flag
Sourcepub const fn empty() -> FrameFlags
pub const fn empty() -> FrameFlags
Returns an empty set of flags
Sourcepub const fn all() -> FrameFlags
pub const fn all() -> FrameFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<FrameFlags>
pub fn from_bits(bits: u32) -> Option<FrameFlags>
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) -> FrameFlags
pub const fn from_bits_truncate(bits: u32) -> FrameFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FrameFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> FrameFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FrameFlags) -> bool
pub const fn intersects(&self, other: FrameFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: FrameFlags) -> bool
pub const fn contains(&self, other: FrameFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: FrameFlags)
pub fn insert(&mut self, other: FrameFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: FrameFlags)
pub fn remove(&mut self, other: FrameFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: FrameFlags)
pub fn toggle(&mut self, other: FrameFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: FrameFlags, value: bool)
pub fn set(&mut self, other: FrameFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for FrameFlags
impl Binary for FrameFlags
Source§impl BitAnd for FrameFlags
impl BitAnd for FrameFlags
Source§fn bitand(self, other: FrameFlags) -> FrameFlags
fn bitand(self, other: FrameFlags) -> FrameFlags
Returns the intersection between the two sets of flags.
Source§type Output = FrameFlags
type Output = FrameFlags
& operator.Source§impl BitAndAssign for FrameFlags
impl BitAndAssign for FrameFlags
Source§fn bitand_assign(&mut self, other: FrameFlags)
fn bitand_assign(&mut self, other: FrameFlags)
Disables all flags disabled in the set.
Source§impl BitOr for FrameFlags
impl BitOr for FrameFlags
Source§fn bitor(self, other: FrameFlags) -> FrameFlags
fn bitor(self, other: FrameFlags) -> FrameFlags
Returns the union of the two sets of flags.
Source§type Output = FrameFlags
type Output = FrameFlags
| operator.Source§impl BitOrAssign for FrameFlags
impl BitOrAssign for FrameFlags
Source§fn bitor_assign(&mut self, other: FrameFlags)
fn bitor_assign(&mut self, other: FrameFlags)
Adds the set of flags.
Source§impl BitXor for FrameFlags
impl BitXor for FrameFlags
Source§fn bitxor(self, other: FrameFlags) -> FrameFlags
fn bitxor(self, other: FrameFlags) -> FrameFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = FrameFlags
type Output = FrameFlags
^ operator.Source§impl BitXorAssign for FrameFlags
impl BitXorAssign for FrameFlags
Source§fn bitxor_assign(&mut self, other: FrameFlags)
fn bitxor_assign(&mut self, other: FrameFlags)
Toggles the set of flags.
Source§impl Clone for FrameFlags
impl Clone for FrameFlags
Source§fn clone(&self) -> FrameFlags
fn clone(&self) -> FrameFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FrameFlags
impl Debug for FrameFlags
Source§impl Default for FrameFlags
impl Default for FrameFlags
Source§fn default() -> FrameFlags
fn default() -> FrameFlags
Source§impl Extend<FrameFlags> for FrameFlags
impl Extend<FrameFlags> for FrameFlags
Source§fn extend<T: IntoIterator<Item = FrameFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FrameFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<FrameFlags> for FrameFlags
impl FromIterator<FrameFlags> for FrameFlags
Source§fn from_iter<T: IntoIterator<Item = FrameFlags>>(iterator: T) -> FrameFlags
fn from_iter<T: IntoIterator<Item = FrameFlags>>(iterator: T) -> FrameFlags
Source§impl Hash for FrameFlags
impl Hash for FrameFlags
Source§impl LowerHex for FrameFlags
impl LowerHex for FrameFlags
Source§impl Not for FrameFlags
impl Not for FrameFlags
Source§fn not(self) -> FrameFlags
fn not(self) -> FrameFlags
Returns the complement of this set of flags.
Source§type Output = FrameFlags
type Output = FrameFlags
! operator.Source§impl Octal for FrameFlags
impl Octal for FrameFlags
Source§impl Ord for FrameFlags
impl Ord for FrameFlags
Source§fn cmp(&self, other: &FrameFlags) -> Ordering
fn cmp(&self, other: &FrameFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FrameFlags
impl PartialEq for FrameFlags
Source§impl PartialOrd for FrameFlags
impl PartialOrd for FrameFlags
Source§impl Sub for FrameFlags
impl Sub for FrameFlags
Source§fn sub(self, other: FrameFlags) -> FrameFlags
fn sub(self, other: FrameFlags) -> FrameFlags
Returns the set difference of the two sets of flags.
Source§type Output = FrameFlags
type Output = FrameFlags
- operator.Source§impl SubAssign for FrameFlags
impl SubAssign for FrameFlags
Source§fn sub_assign(&mut self, other: FrameFlags)
fn sub_assign(&mut self, other: FrameFlags)
Disables all flags enabled in the set.