[][src]Struct embedded_sdmmc::BlockCount

pub struct BlockCount(pub u32);

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 Add<BlockCount> for BlockIdx[src]

type Output = BlockIdx

The resulting type after applying the + operator.

impl Add<BlockCount> for BlockCount[src]

type Output = BlockCount

The resulting type after applying the + operator.

impl AddAssign<BlockCount> for BlockIdx[src]

impl AddAssign<BlockCount> for BlockCount[src]

impl Clone for BlockCount[src]

impl Copy for BlockCount[src]

impl Debug for BlockCount[src]

impl Eq for BlockCount[src]

impl Ord for BlockCount[src]

impl PartialEq<BlockCount> for BlockCount[src]

impl PartialOrd<BlockCount> for BlockCount[src]

impl StructuralEq for BlockCount[src]

impl StructuralPartialEq for BlockCount[src]

impl Sub<BlockCount> for BlockIdx[src]

type Output = BlockIdx

The resulting type after applying the - operator.

impl Sub<BlockCount> for BlockCount[src]

type Output = BlockCount

The resulting type after applying the - operator.

impl SubAssign<BlockCount> for BlockIdx[src]

impl SubAssign<BlockCount> for BlockCount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.