[−][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 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 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 Clone for BlockCount
[src]
fn clone(&self) -> BlockCount
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BlockCount
[src]
impl Debug for BlockCount
[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]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BlockCount> for BlockCount
[src]
fn eq(&self, other: &BlockCount) -> bool
[src]
fn ne(&self, other: &BlockCount) -> bool
[src]
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 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.
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 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 RefUnwindSafe for BlockCount
impl Send for BlockCount
impl Sync for BlockCount
impl Unpin for BlockCount
impl UnwindSafe for BlockCount
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,