pub enum FontBytes {
Static(&'static [u8]),
Owned(Vec<u8>),
}Expand description
The bytes a face is parsed from.
Variants§
Static(&'static [u8])
Bytes that live as long as the process, such as an embedded font or a font file read once: the face reads them in place.
Owned(Vec<u8>)
Bytes the face takes over.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontBytes
impl RefUnwindSafe for FontBytes
impl Send for FontBytes
impl Sync for FontBytes
impl Unpin for FontBytes
impl UnsafeUnpin for FontBytes
impl UnwindSafe for FontBytes
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