pub enum FontBytes {
Static(&'static [u8]),
Owned(Vec<u8>),
}Expand description
The bytes a typeface is read 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 typeface reads them in place.
Owned(Vec<u8>)
Bytes the typeface takes over.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for FontBytes
impl Freeze for FontBytes
impl Move 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