pub enum FileType {
Single,
Collection(u32),
}
Expand description
The type of a font file: either a single font or a TrueType/OpenType collection.
Variants§
Single
The font file represents a single font (.ttf
, .otf
, .woff
, etc.)
Collection(u32)
The font file represents a collection of fonts (.ttc
, .otc
, etc.)
Trait Implementations§
source§impl PartialEq for FileType
impl PartialEq for FileType
impl Copy for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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