[][src]Struct nitro_fs::fat::FileAllocTable

pub struct FileAllocTable { /* fields omitted */ }

Wrapper for handling File Allocation Table stuff

Implementations

impl FileAllocTable[src]

pub fn new(fat: &[u8]) -> Result<Self, Error>[src]

Takes a raw FAT and reads it into a list.

Errors

Will return an error if the length of the data is not divisible by 8. This is because each FAT entry is two 32-bit integers.

It will also return an error if reading from the data fails.

pub fn get(&self, id: u16) -> Option<AllocInfo>[src]

Returns the allocation info for the given file ID.

If the given ID is not in the list, it will return None.

Trait Implementations

impl Clone for FileAllocTable[src]

impl Debug for FileAllocTable[src]

impl Default for FileAllocTable[src]

impl Eq for FileAllocTable[src]

impl Hash for FileAllocTable[src]

impl Ord for FileAllocTable[src]

impl PartialEq<FileAllocTable> for FileAllocTable[src]

impl PartialOrd<FileAllocTable> for FileAllocTable[src]

impl StructuralEq for FileAllocTable[src]

impl StructuralPartialEq for FileAllocTable[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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.