pub struct Format { /* private fields */ }Expand description
A validated packaged XeTeX format and its native fonts, the same bytes load on every little endian target.
Implementations§
Source§impl Format
impl Format
Sourcepub fn from_static(bytes: &'static [u8]) -> Result<Format, FormatError>
pub fn from_static(bytes: &'static [u8]) -> Result<Format, FormatError>
Loads a format FormatBuilder::build wrote, such as one included with include_bytes!.
Sourcepub fn from_owned(bytes: Vec<u8>) -> Result<Format, FormatError>
pub fn from_owned(bytes: Vec<u8>) -> Result<Format, FormatError>
Loads a format FormatBuilder::build wrote.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Format
impl !Sync for Format
impl Freeze for Format
impl RefUnwindSafe for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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