[][src]Struct hiero_pack::HieroAtlas

pub struct HieroAtlas {
    pub info: HieroInfo,
    pub common: HieroCommon,
    pub bitmap_table: HashMap<char, HieroBitmap>,
    pub kerning_table: HashMap<(char, char), i32>,
    pub compressed_pages: Vec<Vec<u8>>,
}

Fields

info: HieroInfocommon: HieroCommonbitmap_table: HashMap<char, HieroBitmap>kerning_table: HashMap<(char, char), i32>compressed_pages: Vec<Vec<u8>>

Implementations

impl HieroAtlas[src]

pub fn new() -> HieroIncomplete<Self>[src]

pub fn deserialize(data: Vec<u8>) -> Result<Self, HieroPackError>[src]

pub fn try_unpack_page(
    &self,
    page_index: usize
) -> Result<HieroPage, PageUnpackError>
[src]

decodes a compressed page and returns a heap allocated image

Trait Implementations

impl<'de> Deserialize<'de> for HieroAtlas[src]

impl Serialize for HieroAtlas[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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.