pub struct CollectionOptions {
pub shared: bool,
pub system_fonts: bool,
}Expand description
Options for a font collection.
Fields§
If true, the font collection will use a secondary shared store guaranteeing that any changes to the collection will be visible to all clones.
If the font collection will be used by a single thread, this is pure overhead and should be disabled.
The default value is false.
system_fonts: boolIf true, the font collection will provide access to system fonts using platform specific APIs.
The default value is true.
Trait Implementations§
Source§impl Clone for CollectionOptions
impl Clone for CollectionOptions
impl Copy for CollectionOptions
Source§impl Debug for CollectionOptions
impl Debug for CollectionOptions
Auto Trait Implementations§
impl Forget for CollectionOptions
impl Freeze for CollectionOptions
impl Move for CollectionOptions
impl RefUnwindSafe for CollectionOptions
impl Send for CollectionOptions
impl Sync for CollectionOptions
impl Unpin for CollectionOptions
impl UnsafeUnpin for CollectionOptions
impl UnwindSafe for CollectionOptions
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