pub enum FontAssetSource {
Stream(Box<dyn FTStreamProvider>),
FilePath(String),
}
Expand description
Describes the source of a font asset to be parsed.
Variants§
Stream(Box<dyn FTStreamProvider>)
Byte stream (e.g. from a VMO)
FilePath(String)
Path to a local file
Trait Implementations§
Source§impl Debug for FontAssetSource
impl Debug for FontAssetSource
Source§impl TryFrom<Buffer> for FontAssetSource
impl TryFrom<Buffer> for FontAssetSource
Converts a fidl_fuchsia_mem::Buffer
into a FontAssetSource
by opening a stream from the
VMO represented by the buffer.
Source§impl TryFrom<FontAssetSource> for FTOpenArgs
impl TryFrom<FontAssetSource> for FTOpenArgs
Converts a FontAssetSource
to a wrapper around FT_Open_Args
, which is required for reading a
font with FreeType.
Auto Trait Implementations§
impl Freeze for FontAssetSource
impl !RefUnwindSafe for FontAssetSource
impl !Send for FontAssetSource
impl !Sync for FontAssetSource
impl Unpin for FontAssetSource
impl !UnwindSafe for FontAssetSource
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