pub struct EmptyFlags;Expand description
Flags to be encoded into the serialization.
Trait Implementations§
Source§impl Clone for EmptyFlags
impl Clone for EmptyFlags
Source§fn clone(&self) -> EmptyFlags
fn clone(&self) -> EmptyFlags
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 Default for EmptyFlags
impl Default for EmptyFlags
Source§fn default() -> EmptyFlags
fn default() -> EmptyFlags
Returns the “default value” for a type. Read more
Source§impl Flags for EmptyFlags
impl Flags for EmptyFlags
Source§const BIT_SIZE: usize = 0
const BIT_SIZE: usize = 0
The number of bits required to encode
Self.
This should be at most 8.Source§fn u8_bitmask(&self) -> u8
fn u8_bitmask(&self) -> u8
Returns a bit mask corresponding to
self.
For example, if Self contains two variants, there are just two possible
bit masks: 0 and 1 << 7.Source§fn from_u8(_: u8) -> Option<Self>
fn from_u8(_: u8) -> Option<Self>
Tries to read
Self from value. Should return None if the
Self::BIT_SIZE most-significant bits of value do not correspond to
those generated by u8_bitmask. Read moreSource§fn from_u8_remove_flags(value: &mut u8) -> Option<Self>
fn from_u8_remove_flags(value: &mut u8) -> Option<Self>
Convenience method that reads
Self from value, just like Self::from_u8,
but additionally zeroes out the bits corresponding to the resulting flag
in value. If Self::from_u8(*value) would return None, then this
method should not modify value.Source§impl PartialEq for EmptyFlags
impl PartialEq for EmptyFlags
impl Copy for EmptyFlags
impl Eq for EmptyFlags
impl StructuralPartialEq for EmptyFlags
Auto Trait Implementations§
impl Freeze for EmptyFlags
impl RefUnwindSafe for EmptyFlags
impl Send for EmptyFlags
impl Sync for EmptyFlags
impl Unpin for EmptyFlags
impl UnsafeUnpin for EmptyFlags
impl UnwindSafe for EmptyFlags
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