Enum NumberOfLanes
#[repr(u8)]pub enum NumberOfLanes {
OneLane = 0,
TwoLanes = 1,
_RESERVED_2 = 2,
_RESERVED_3 = 3,
}Variants§
OneLane = 0
One data lane (lane 0)
TwoLanes = 1
Two data lanes (lanes 0 and 1)
_RESERVED_2 = 2
_RESERVED_3 = 3
Implementations§
§impl NumberOfLanes
impl NumberOfLanes
pub const fn from_bits(val: u8) -> NumberOfLanes
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for NumberOfLanes
impl Clone for NumberOfLanes
§fn clone(&self) -> NumberOfLanes
fn clone(&self) -> NumberOfLanes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumberOfLanes
impl Eq for NumberOfLanes
§impl From<NumberOfLanes> for u8
impl From<NumberOfLanes> for u8
§fn from(val: NumberOfLanes) -> u8
fn from(val: NumberOfLanes) -> u8
Converts to this type from the input type.
§impl From<u8> for NumberOfLanes
impl From<u8> for NumberOfLanes
§fn from(val: u8) -> NumberOfLanes
fn from(val: u8) -> NumberOfLanes
Converts to this type from the input type.
§impl Ord for NumberOfLanes
impl Ord for NumberOfLanes
§fn cmp(&self, other: &NumberOfLanes) -> Ordering
fn cmp(&self, other: &NumberOfLanes) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for NumberOfLanes
impl PartialEq for NumberOfLanes
§impl PartialOrd for NumberOfLanes
impl PartialOrd for NumberOfLanes
impl StructuralPartialEq for NumberOfLanes
Auto Trait Implementations§
impl Freeze for NumberOfLanes
impl RefUnwindSafe for NumberOfLanes
impl Send for NumberOfLanes
impl Sync for NumberOfLanes
impl Unpin for NumberOfLanes
impl UnsafeUnpin for NumberOfLanes
impl UnwindSafe for NumberOfLanes
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