#[repr(u8)]pub enum BlockUnitSelect {
Bytes512 = 0,
Bytes32k = 1,
}
Expand description
Represents the MIO
(memory or I/O) field of the Argument.
Variants§
Implementations§
Source§impl BlockUnitSelect
impl BlockUnitSelect
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new BlockUnitSelect.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a BlockUnitSelect.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a BlockUnitSelect into a u8
.
Source§impl BlockUnitSelect
impl BlockUnitSelect
Sourcepub const fn from_bool(val: bool) -> Self
pub const fn from_bool(val: bool) -> Self
Converts a bool
into a BlockUnitSelect.
Sourcepub const fn into_bool(self) -> bool
pub const fn into_bool(self) -> bool
Converts a BlockUnitSelect into a bool
.
Trait Implementations§
Source§impl Clone for BlockUnitSelect
impl Clone for BlockUnitSelect
Source§fn clone(&self) -> BlockUnitSelect
fn clone(&self) -> BlockUnitSelect
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 BlockUnitSelect
impl Debug for BlockUnitSelect
Source§impl Default for BlockUnitSelect
impl Default for BlockUnitSelect
Source§impl From<BlockUnitSelect> for bool
impl From<BlockUnitSelect> for bool
Source§fn from(val: BlockUnitSelect) -> Self
fn from(val: BlockUnitSelect) -> Self
Converts to this type from the input type.
Source§impl From<BlockUnitSelect> for u8
impl From<BlockUnitSelect> for u8
Source§fn from(val: BlockUnitSelect) -> Self
fn from(val: BlockUnitSelect) -> Self
Converts to this type from the input type.
Source§impl From<bool> for BlockUnitSelect
impl From<bool> for BlockUnitSelect
Source§impl PartialEq for BlockUnitSelect
impl PartialEq for BlockUnitSelect
Source§impl TryFrom<u8> for BlockUnitSelect
impl TryFrom<u8> for BlockUnitSelect
impl Copy for BlockUnitSelect
impl Eq for BlockUnitSelect
impl StructuralPartialEq for BlockUnitSelect
Auto Trait Implementations§
impl Freeze for BlockUnitSelect
impl RefUnwindSafe for BlockUnitSelect
impl Send for BlockUnitSelect
impl Sync for BlockUnitSelect
impl Unpin for BlockUnitSelect
impl UnwindSafe for BlockUnitSelect
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