pub struct IconRef {
pub family: &'static str,
pub codepoint: u32,
}Expand description
Reference to a concrete glyph inside a font.
Fields§
§family: &'static strFont family name stored inside the TTF.
codepoint: u32Unicode codepoint of the glyph.
Trait Implementations§
impl Copy for IconRef
impl Eq for IconRef
Source§impl Ord for IconRef
impl Ord for IconRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for IconRef
impl PartialOrd for IconRef
impl StructuralPartialEq for IconRef
Auto Trait Implementations§
impl Freeze for IconRef
impl RefUnwindSafe for IconRef
impl Send for IconRef
impl Sync for IconRef
impl Unpin for IconRef
impl UnsafeUnpin for IconRef
impl UnwindSafe for IconRef
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