#[non_exhaustive]pub struct Layout {
pub version: Version,
pub compact: bool,
pub character_tables: Vec<CharacterTable>,
pub color_tables: Vec<ColorTable>,
pub pixmap_tables: Vec<PixmapTable>,
pub font_tables: Vec<FontTable>,
}Expand description
The full, decoded contents of a .spf file: its format version, packing mode, and every table it defines.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: VersionThe format version this layout was parsed from, or should be serialized as.
compact: boolWhether partial trailing bytes are packed to the bit (true) or padded out to a full byte (false).
character_tables: Vec<CharacterTable>The character tables defined in this file.
color_tables: Vec<ColorTable>The color tables defined in this file.
pixmap_tables: Vec<PixmapTable>The pixmap tables defined in this file.
font_tables: Vec<FontTable>The font tables defined in this file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layout
impl<'de> Deserialize<'de> for Layout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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