[−][src]Struct embedded_sdmmc::BlockCount
Represents the a number of blocks (or sectors). Add this to a BlockIdx
to get an actual address on disk.
Methods
impl BlockCount
[src]
pub fn offset_bytes(self, offset: u32) -> Self
[src]
Take a number of blocks and increment by the integer number of blocks required to get to the block that holds the byte at the given offset.
Trait Implementations
impl Copy for BlockCount
[src]
impl PartialEq<BlockCount> for BlockCount
[src]
fn eq(&self, other: &BlockCount) -> bool
[src]
fn ne(&self, other: &BlockCount) -> bool
[src]
impl Eq for BlockCount
[src]
impl Ord for BlockCount
[src]
fn cmp(&self, other: &BlockCount) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd<BlockCount> for BlockCount
[src]
fn partial_cmp(&self, other: &BlockCount) -> Option<Ordering>
[src]
fn lt(&self, other: &BlockCount) -> bool
[src]
fn le(&self, other: &BlockCount) -> bool
[src]
fn gt(&self, other: &BlockCount) -> bool
[src]
fn ge(&self, other: &BlockCount) -> bool
[src]
impl Clone for BlockCount
[src]
fn clone(&self) -> BlockCount
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BlockCount
[src]
impl Add<BlockCount> for BlockIdx
[src]
type Output = BlockIdx
The resulting type after applying the +
operator.
fn add(self, rhs: BlockCount) -> BlockIdx
[src]
impl Add<BlockCount> for BlockCount
[src]
type Output = BlockCount
The resulting type after applying the +
operator.
fn add(self, rhs: BlockCount) -> BlockCount
[src]
impl Sub<BlockCount> for BlockIdx
[src]
type Output = BlockIdx
The resulting type after applying the -
operator.
fn sub(self, rhs: BlockCount) -> BlockIdx
[src]
impl Sub<BlockCount> for BlockCount
[src]
type Output = BlockCount
The resulting type after applying the -
operator.
fn sub(self, rhs: BlockCount) -> BlockCount
[src]
impl AddAssign<BlockCount> for BlockIdx
[src]
fn add_assign(&mut self, rhs: BlockCount)
[src]
impl AddAssign<BlockCount> for BlockCount
[src]
fn add_assign(&mut self, rhs: BlockCount)
[src]
impl SubAssign<BlockCount> for BlockIdx
[src]
fn sub_assign(&mut self, rhs: BlockCount)
[src]
impl SubAssign<BlockCount> for BlockCount
[src]
fn sub_assign(&mut self, rhs: BlockCount)
[src]
Auto Trait Implementations
impl Send for BlockCount
impl Sync for BlockCount
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,