[][src]Struct nes_rom::unif::Unif

pub struct Unif {
    pub name: Option<String>,
    pub read: Option<String>,
    pub tvci: Option<TvSystem>,
    pub ctrl: Option<GameInputType>,
    pub batr: Option<bool>,
    pub vror: Option<u8>,
    pub mirr: Option<NametableMirroring>,
    pub mapr: String,
    pub prg_crc: u32,
    pub chr_crc: u32,
    pub prg_data: Vec<u8>,
    pub chr_data: Vec<u8>,
}

Fields

name: Option<String>read: Option<String>tvci: Option<TvSystem>ctrl: Option<GameInputType>batr: Option<bool>vror: Option<u8>mirr: Option<NametableMirroring>mapr: Stringprg_crc: u32chr_crc: u32prg_data: Vec<u8>chr_data: Vec<u8>

Methods

impl Unif[src]

pub fn new() -> Unif[src]

pub fn from_rom<R: Read + Seek>(file: R) -> Result<Unif, RomError>[src]

Load and parse .unif/.unf file

Examples

let unif = nes_rom::unif::Unif::from_rom(arg);

pub fn into_ines(self) -> Result<Ines, RomError>[src]

Convert unif to ines format, transfers ownership

Examples

let ines = unif.into_ines();

pub fn to_ines(&self) -> Result<Ines, RomError>[src]

Convert unif to ines format, clone rom data

Examples

let ines = unif.to_ines();

Trait Implementations

impl PartialEq<Unif> for Unif[src]

impl Clone for Unif[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Unif[src]

Auto Trait Implementations

impl Send for Unif

impl Sync for Unif

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.