[][src]Struct ggbasm::header::Header

pub struct Header {
    pub title: String,
    pub color_support: ColorSupport,
    pub licence: String,
    pub sgb_support: bool,
    pub cartridge_type: CartridgeType,
    pub ram_type: RamType,
    pub japanese: bool,
    pub version_number: u8,
}

Fields

title: String

11 bytes

color_support: ColorSupportlicence: String

2 bytes

sgb_support: boolcartridge_type: CartridgeTyperam_type: RamTypejapanese: boolversion_number: u8

Methods

impl Header[src]

pub fn write(&self, rom: &mut Vec<u8>, rom_size_factor: u8)[src]

Auto Trait Implementations

impl Sync for Header

impl Unpin for Header

impl Send for Header

impl UnwindSafe for Header

impl RefUnwindSafe for Header

Blanket Implementations

impl<T> From<T> for T[src]

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

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.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.