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