pub struct FontId { /* private fields */ }Expand description
由 TextRuntime::register_font 注入的字体标识。family() 可直接拼进 CSS 字体栈,
例如 format!("{}, {}", id.family(), runtime.font_stack())。
Implementations§
Trait Implementations§
impl Eq for FontId
impl StructuralPartialEq for FontId
Auto Trait Implementations§
impl Forget for FontId
impl Freeze for FontId
impl Move for FontId
impl RefUnwindSafe for FontId
impl Send for FontIdwhere
RawVecInner: Send,
impl Sync for FontIdwhere
RawVecInner: Sync,
impl Unpin for FontId
impl UnsafeUnpin for FontId
impl UnwindSafe for FontIdwhere
RawVecInner: UnwindSafe,
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