pub struct Ssb {Show 13 fields
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>,
}
Expand description
Raw SSB data, representing original input one-by-one (except empty lines and comments).
Fields§
§info_title: 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: u16
§target_view: View
§macros: HashMap<String, String>
§events: Vec<Event>
§fonts: HashMap<FontFace, FontData>
§textures: HashMap<TextureId, TextureDataVariant>
Implementations§
Source§impl Ssb
impl Ssb
Sourcepub fn parse_owned<R>(self, reader: R) -> Result<Self, ParseError>where
R: BufRead,
pub fn parse_owned<R>(self, reader: R) -> Result<Self, ParseError>where
R: BufRead,
Parse SSB input and fill structure (which it owns and returns modified).
Sourcepub fn parse<R>(&mut self, reader: R) -> Result<&mut Self, ParseError>where
R: BufRead,
pub fn parse<R>(&mut self, reader: R) -> Result<&mut Self, ParseError>where
R: BufRead,
Parse SSB input and fill structure (which it borrows and returns as reference).
Trait Implementations§
impl StructuralPartialEq for Ssb
Auto Trait Implementations§
impl Freeze for Ssb
impl RefUnwindSafe for Ssb
impl Send for Ssb
impl Sync for Ssb
impl Unpin for Ssb
impl UnwindSafe for Ssb
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more