pub struct FontHandle(/* private fields */);Expand description
可克隆的共享字体句柄:内部持有加好字体的 FontSystem 与一个 SwashCache,各用 Mutex
包(cosmic-text 整形 / 取字形位图都要 &mut)。克隆只增引用计数。
Implementations§
Source§impl FontHandle
impl FontHandle
Trait Implementations§
Source§impl Clone for FontHandle
impl Clone for FontHandle
Source§fn clone(&self) -> FontHandle
fn clone(&self) -> FontHandle
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 moreAuto Trait Implementations§
impl Freeze for FontHandle
impl RefUnwindSafe for FontHandle
impl Send for FontHandle
impl Sync for FontHandle
impl Unpin for FontHandle
impl UnsafeUnpin for FontHandle
impl UnwindSafe for FontHandle
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