pub enum LogicalUnit {
Zero,
One,
Two,
Three,
}Variants§
Implementations§
Source§impl LogicalUnit
impl LogicalUnit
Sourcepub fn from_low_bits(value: u8) -> Self
pub fn from_low_bits(value: u8) -> Self
Construct a LogicalUnit from the two lowest bits of value,
ignoring all other bits.
Trait Implementations§
Source§impl Clone for LogicalUnit
impl Clone for LogicalUnit
Source§fn clone(&self) -> LogicalUnit
fn clone(&self) -> LogicalUnit
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 LogicalUnit
impl Debug for LogicalUnit
Source§impl PartialEq for LogicalUnit
impl PartialEq for LogicalUnit
Source§impl TryFrom<u8> for LogicalUnit
impl TryFrom<u8> for LogicalUnit
impl Copy for LogicalUnit
impl StructuralPartialEq for LogicalUnit
Auto Trait Implementations§
impl Freeze for LogicalUnit
impl RefUnwindSafe for LogicalUnit
impl Send for LogicalUnit
impl Sync for LogicalUnit
impl Unpin for LogicalUnit
impl UnwindSafe for LogicalUnit
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