pub(crate) struct FontTableFunction {
table_fn: Arc<dyn Fn(Tag) -> Option<FontBlob> + Send + Sync>,
tables: Arc<PerTableData<OnceLock<Option<(Atomic<u8>, FontBlob)>>>>,
}Expand description
Lazy, per table font data provided by a function.
Fields§
§table_fn: Arc<dyn Fn(Tag) -> Option<FontBlob> + Send + Sync>§tables: Arc<PerTableData<OnceLock<Option<(Atomic<u8>, FontBlob)>>>>Implementations§
Trait Implementations§
Source§impl Clone for FontTableFunction
impl Clone for FontTableFunction
Source§fn clone(&self) -> FontTableFunction
fn clone(&self) -> FontTableFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FontTableFunction> for FontSource
impl From<FontTableFunction> for FontSource
Source§fn from(value: FontTableFunction) -> FontSource
fn from(value: FontTableFunction) -> FontSource
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FontTableFunction
impl !RefUnwindSafe for FontTableFunction
impl Send for FontTableFunction
impl Sync for FontTableFunction
impl Unpin for FontTableFunction
impl UnsafeUnpin for FontTableFunction
impl !UnwindSafe for FontTableFunction
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