#[repr(u8)]pub enum WriteBlockPartial {
Disabled = 0,
Enabled = 1,
}Expand description
Represents the WRITE_BL_PARTIAL field of the CSD register.
Variants§
Disabled = 0
Indicates that partial block writes are not allowed.
Enabled = 1
Indicates that partial block writes are allowed.
Implementations§
Source§impl WriteBlockPartial
impl WriteBlockPartial
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new WriteBlockPartial.
Sourcepub const fn from_bool(val: bool) -> Self
pub const fn from_bool(val: bool) -> Self
Attempts to convert a bool into a WriteBlockPartial.
Sourcepub const fn into_bool(self) -> bool
pub const fn into_bool(self) -> bool
Converts a WriteBlockPartial into a bool.
Sourcepub const fn try_from_u8(val: u8) -> Result<Self>
pub const fn try_from_u8(val: u8) -> Result<Self>
Attempts to convert a u8 into a WriteBlockPartial.
Sourcepub const fn into_u8(self) -> u8
pub const fn into_u8(self) -> u8
Converts a WriteBlockPartial into a u8.
Source§impl WriteBlockPartial
impl WriteBlockPartial
Sourcepub const fn from_inner(val: bool) -> Self
pub const fn from_inner(val: bool) -> Self
Converts an inner representation into a WriteBlockPartial.
Sourcepub const fn try_from_inner(val: bool) -> Result<Self>
pub const fn try_from_inner(val: bool) -> Result<Self>
Attempts to convert an inner representation into a WriteBlockPartial.
Sourcepub const fn into_inner(self) -> bool
pub const fn into_inner(self) -> bool
Converts a WriteBlockPartial into an inner representation.
Trait Implementations§
Source§impl Clone for WriteBlockPartial
impl Clone for WriteBlockPartial
Source§fn clone(&self) -> WriteBlockPartial
fn clone(&self) -> WriteBlockPartial
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 WriteBlockPartial
impl Debug for WriteBlockPartial
Source§impl Default for WriteBlockPartial
impl Default for WriteBlockPartial
Source§impl From<WriteBlockPartial> for bool
impl From<WriteBlockPartial> for bool
Source§fn from(val: WriteBlockPartial) -> Self
fn from(val: WriteBlockPartial) -> Self
Converts to this type from the input type.
Source§impl From<WriteBlockPartial> for u8
impl From<WriteBlockPartial> for u8
Source§fn from(val: WriteBlockPartial) -> Self
fn from(val: WriteBlockPartial) -> Self
Converts to this type from the input type.
Source§impl From<bool> for WriteBlockPartial
impl From<bool> for WriteBlockPartial
Source§impl PartialEq for WriteBlockPartial
impl PartialEq for WriteBlockPartial
Source§impl TryFrom<u8> for WriteBlockPartial
impl TryFrom<u8> for WriteBlockPartial
impl Copy for WriteBlockPartial
impl Eq for WriteBlockPartial
impl StructuralPartialEq for WriteBlockPartial
Auto Trait Implementations§
impl Freeze for WriteBlockPartial
impl RefUnwindSafe for WriteBlockPartial
impl Send for WriteBlockPartial
impl Sync for WriteBlockPartial
impl Unpin for WriteBlockPartial
impl UnwindSafe for WriteBlockPartial
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