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

impl Clone for BlockCount[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<BlockCount> for BlockCount[src]

impl Eq for BlockCount[src]

impl Ord for BlockCount[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]

impl Debug for BlockCount[src]

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

impl AddAssign<BlockCount> for BlockCount[src]

impl SubAssign<BlockCount> for BlockIdx[src]

impl SubAssign<BlockCount> for BlockCount[src]

Auto Trait Implementations

impl Send for BlockCount

impl Sync for BlockCount

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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.

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

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

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

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