pub struct BookFontRegistry {
pub fonts: HashMap<String, Vec<u8>>,
}Expand description
Global font data registry — maps font_id → raw TTF/OTF bytes. Populated independently of book JSON, before the first render.
Fields§
§fonts: HashMap<String, Vec<u8>>Implementations§
Trait Implementations§
Source§impl Debug for BookFontRegistry
impl Debug for BookFontRegistry
Source§impl Default for BookFontRegistry
impl Default for BookFontRegistry
Source§fn default() -> BookFontRegistry
fn default() -> BookFontRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BookFontRegistry
impl RefUnwindSafe for BookFontRegistry
impl Send for BookFontRegistry
impl Sync for BookFontRegistry
impl Unpin for BookFontRegistry
impl UnsafeUnpin for BookFontRegistry
impl UnwindSafe for BookFontRegistry
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