[−][src]Struct embedded_sdmmc::BlockIdx
Represents the linear numeric address of a block (or sector). The first
block on a disk gets BlockIdx(0)
(which usually contains the Master Boot
Record).
Methods
impl BlockIdx
[src]
pub fn into_bytes(self) -> u64
[src]
Convert a block index into a 64-bit byte offset from the start of the
volume. Useful if your underlying block device actually works in
bytes, like open("/dev/mmcblk0")
does on Linux.
pub fn range(self, num: BlockCount) -> BlockIter
[src]
Create an iterator from the current BlockIdx
through the given
number of blocks.
Trait Implementations
impl Copy for BlockIdx
[src]
impl Clone for BlockIdx
[src]
fn clone(&self) -> BlockIdx
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<BlockIdx> for BlockIdx
[src]
impl Eq for BlockIdx
[src]
impl Ord for BlockIdx
[src]
fn cmp(&self, other: &BlockIdx) -> 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<BlockIdx> for BlockIdx
[src]
fn partial_cmp(&self, other: &BlockIdx) -> Option<Ordering>
[src]
fn lt(&self, other: &BlockIdx) -> bool
[src]
fn le(&self, other: &BlockIdx) -> bool
[src]
fn gt(&self, other: &BlockIdx) -> bool
[src]
fn ge(&self, other: &BlockIdx) -> bool
[src]
impl Debug for BlockIdx
[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 Sub<BlockCount> for BlockIdx
[src]
type Output = BlockIdx
The resulting type after applying the -
operator.
fn sub(self, rhs: BlockCount) -> BlockIdx
[src]
impl AddAssign<BlockCount> for BlockIdx
[src]
fn add_assign(&mut self, rhs: BlockCount)
[src]
impl SubAssign<BlockCount> for BlockIdx
[src]
fn sub_assign(&mut self, rhs: BlockCount)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
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,