[][src]Struct nitro_fs::FileSystem

pub struct FileSystem {
    pub dirs: BTreeMap<u16, Directory>,
    // some fields omitted
}

Represents a NitroROM file system.

Fields

dirs: BTreeMap<u16, Directory>

Implementations

impl FileSystem[src]

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

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

How many directories there are

pub fn files(&self) -> Vec<&FileEntry>[src]

Get a Vec of all files

pub fn start_id(&self) -> u16[src]

The lowest ID in the File System. Any ID lower than this in the FAT is an overlay file.

pub fn overlays(&self) -> &[FileEntry][src]

Get a Vec of all overlays

Trait Implementations

impl Clone for FileSystem[src]

impl Debug for FileSystem[src]

impl Default for FileSystem[src]

impl Eq for FileSystem[src]

impl PartialEq<FileSystem> for FileSystem[src]

impl StructuralEq for FileSystem[src]

impl StructuralPartialEq for FileSystem[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.