[][src]Struct cpclib_disc::amsdos::AmsdosEntry

pub struct AmsdosEntry { /* fields omitted */ }

Represents an entry in the Amsdos Catalog

Implementations

impl AmsdosEntry[src]

pub fn used_space(&self) -> usize[src]

Provide the size, in Kb, eaten by the file on disc

pub fn belongs_to(&self, filename: &AmsdosFileName) -> bool[src]

Check if the given filename corresponds to the entry

pub fn amsdos_filename(&self) -> &AmsdosFileName[src]

pub fn from_slice(idx: u8, slice: &[u8]) -> Self[src]

pub fn from_buffer(idx: u8, buffer: &[u8; 32]) -> Self[src]

Create the entry from its 32 bytes

pub fn used_blocs(&self) -> &[BlocIdx][src]

Returns the list of used blocs by tis entry

pub fn nb_blocs(&self) -> usize[src]

Compute the real number of blocs to read

pub fn set_blocs(&mut self, blocs: &[BlocIdx])[src]

Set the number of blocs

pub fn as_bytes(&self) -> [u8; 32][src]

pub fn len() -> usize[src]

pub fn is_erased(&self) -> bool[src]

pub fn is_read_only(&self) -> bool[src]

pub fn is_system(&self) -> bool[src]

pub fn set_system(&mut self)[src]

pub fn set_read_only(&mut self)[src]

pub fn unset_system(&mut self)[src]

pub fn unset_read_only(&mut self)[src]

pub fn set_num_page(&mut self, num: u8)[src]

pub fn page_size(&self) -> u8[src]

pub fn set_page_size(&mut self, size: u8)[src]

pub fn user(&self) -> u8[src]

pub fn set_user(&mut self, user: u8)[src]

pub fn name(&self) -> String[src]

pub fn extension(&self) -> String[src]

pub fn filename(&self) -> String[src]

pub fn filename_with_user(&self) -> String[src]

pub fn set_filename<S: AsRef<str>>(&mut self, filename: S)[src]

pub fn set_name<S: AsRef<str>>(&mut self, name: S)[src]

pub fn set_extension<S: AsRef<str>>(&mut self, extension: S)[src]

pub fn format(&self) -> String[src]

Trait Implementations

impl Clone for AmsdosEntry[src]

impl Copy for AmsdosEntry[src]

impl Debug for AmsdosEntry[src]

impl Display for AmsdosEntry[src]

impl PartialEq<AmsdosEntry> for AmsdosEntry[src]

impl StructuralPartialEq for AmsdosEntry[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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.