pub struct GlyphRegistry { /* private fields */ }Expand description
Runtime registry used for width lookups.
Implementations§
Source§impl GlyphRegistry
impl GlyphRegistry
Sourcepub fn new(profile: RenderProfile) -> Self
pub fn new(profile: RenderProfile) -> Self
Create a runtime registry from a serialized profile.
Sourcepub fn profile(&self) -> &RenderProfile
pub fn profile(&self) -> &RenderProfile
Returns the underlying profile (useful for debugging and version checks).
Trait Implementations§
Source§impl Clone for GlyphRegistry
impl Clone for GlyphRegistry
Source§fn clone(&self) -> GlyphRegistry
fn clone(&self) -> GlyphRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlyphRegistry
impl RefUnwindSafe for GlyphRegistry
impl Send for GlyphRegistry
impl Sync for GlyphRegistry
impl Unpin for GlyphRegistry
impl UnsafeUnpin for GlyphRegistry
impl UnwindSafe for GlyphRegistry
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