Enum skrifa::charmap::MapVariant
source · pub enum MapVariant {
UseDefault,
Variant(GlyphId),
}
Expand description
Result of mapping a codepoint with a variation selector.
Variants§
UseDefault
The variation selector should be ignored and the default mapping of the character should be used.
Variant(GlyphId)
The variant glyph mapped by a codepoint and associated variation selector.
Trait Implementations§
source§impl Clone for MapVariant
impl Clone for MapVariant
source§fn clone(&self) -> MapVariant
fn clone(&self) -> MapVariant
Returns a copy 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 moresource§impl Debug for MapVariant
impl Debug for MapVariant
source§impl PartialEq for MapVariant
impl PartialEq for MapVariant
impl Copy for MapVariant
impl Eq for MapVariant
impl StructuralPartialEq for MapVariant
Auto Trait Implementations§
impl Freeze for MapVariant
impl RefUnwindSafe for MapVariant
impl Send for MapVariant
impl Sync for MapVariant
impl Unpin for MapVariant
impl UnwindSafe for MapVariant
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)