[][src]Enum cpclib_disc::amsdos::BlocIdx

pub enum BlocIdx {
    Empty,
    Deleted,
    Index(NonZeroU8),
}

Encode the index of a bloc

Variants

Empty

The block is not used

Deleted

The block is deleted

Index(NonZeroU8)

Index of a real bloc

Implementations

impl BlocIdx[src]

pub fn is_valid(self) -> bool[src]

pub fn value(self) -> u8[src]

pub fn track(self) -> u8[src]

only valid for a valid block

pub fn sector(self) -> u8[src]

only valid for a valid block

Trait Implementations

impl Clone for BlocIdx[src]

impl Copy for BlocIdx[src]

impl Debug for BlocIdx[src]

impl Default for BlocIdx[src]

impl Eq for BlocIdx[src]

impl From<u8> for BlocIdx[src]

impl<'_> Into<u8> for &'_ BlocIdx[src]

impl Ord for BlocIdx[src]

impl PartialEq<BlocIdx> for BlocIdx[src]

impl PartialOrd<BlocIdx> for BlocIdx[src]

impl StructuralEq for BlocIdx[src]

Auto Trait Implementations

impl RefUnwindSafe for BlocIdx

impl Send for BlocIdx

impl Sync for BlocIdx

impl Unpin for BlocIdx

impl UnwindSafe for BlocIdx

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.