[][src]Struct ssb_parser::Ssb

pub struct Ssb {
    pub info_title: Option<String>,
    pub info_author: Option<String>,
    pub info_description: Option<String>,
    pub info_version: Option<String>,
    pub info_custom: HashMap<String, String>,
    pub target_width: Option<u16>,
    pub target_height: Option<u16>,
    pub target_depth: u16,
    pub target_view: View,
    pub macros: HashMap<String, String>,
    pub events: Vec<Event>,
    pub fonts: HashMap<FontFace, FontData>,
    pub textures: HashMap<TextureId, TextureDataVariant>,
}

Raw SSB data, representing original input one-by-one (except empty lines and comments).

Fields

info_title: Option<String>info_author: Option<String>info_description: Option<String>info_version: Option<String>info_custom: HashMap<String, String>target_width: Option<u16>target_height: Option<u16>target_depth: u16target_view: Viewmacros: HashMap<String, String>events: Vec<Event>fonts: HashMap<FontFace, FontData>textures: HashMap<TextureId, TextureDataVariant>

Methods

impl Ssb[src]

pub fn parse_owned<R>(self, reader: R) -> Result<Self, ParseError> where
    R: BufRead
[src]

Parse SSB input and fill structure (which it owns and returns modified).

pub fn parse<R>(&mut self, reader: R) -> Result<&mut Self, ParseError> where
    R: BufRead
[src]

Parse SSB input and fill structure (which it borrows and returns as reference).

Trait Implementations

impl Clone for Ssb[src]

impl Debug for Ssb[src]

impl Default for Ssb[src]

impl PartialEq<Ssb> for Ssb[src]

impl StructuralPartialEq for Ssb[src]

impl TryFrom<Ssb> for SsbRender[src]

type Error = ParseError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Ssb

impl Send for Ssb

impl Sync for Ssb

impl Unpin for Ssb

impl UnwindSafe for Ssb

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.