Struct nx::File [-]  [+] [src]

pub struct File {
    // some fields omitted
}

A memory-mapped NX file.

Methods

impl File

fn open(path: &Path) -> Result<File, Error>

Opens an NX file via memory-mapping. This also checks the magic bytes in the header.

fn header(&self) -> &Header

Gets the file header.

fn root<'a>(&'a self) -> Node<'a>

Gets the root node of the file.