pub struct FontData {
pub bytes: U8Vec,
pub font_index: u32,
pub parsed: *const c_void,
pub parsed_destructor: fn(*mut c_void),
}Fields§
§bytes: U8VecBytes of the font file, either &’static (never changing bytes) or a Vec
font_index: u32Index of the font in the file (if not known, set to 0) - only relevant if the file is a font collection
parsed: *const c_void§parsed_destructor: fn(*mut c_void)Trait Implementations§
impl Send for FontData
impl Sync for FontData
Auto Trait Implementations§
impl Freeze for FontData
impl RefUnwindSafe for FontData
impl Unpin for FontData
impl UnwindSafe for FontData
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