pub struct LoadContext { /* private fields */ }Expand description
Immutable loader configuration; no font discovery, GPU or encoder is created.
Implementations§
Source§impl LoadContext
impl LoadContext
Sourcepub fn fonts(&self) -> Option<&FontEnvironment>
pub fn fonts(&self) -> Option<&FontEnvironment>
Immutable font environment supplied by this resource owner, if any.
Sourcepub fn max_encoded_bytes(&self) -> usize
pub fn max_encoded_bytes(&self) -> usize
Maximum encoded bytes accepted by a single resource.
Trait Implementations§
Source§impl Clone for LoadContext
impl Clone for LoadContext
Auto Trait Implementations§
impl Forget for LoadContext
impl Freeze for LoadContext
impl RefUnwindSafe for LoadContext
impl Send for LoadContext
impl Sync for LoadContext
impl Unpin for LoadContext
impl UnsafeUnpin for LoadContext
impl UnwindSafe for LoadContext
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