Struct floem_peniko::Font
source · pub struct Font {
pub data: Blob<u8>,
pub index: u32,
}
Expand description
Owned shareable font resource.
Fields§
§data: Blob<u8>
Blob containing the content of the font file.
index: u32
Index of the font in a collection, or 0 for a single font.
Implementations§
Trait Implementations§
source§impl PartialEq for Font
impl PartialEq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl !RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl !UnwindSafe for Font
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