Enum KerningOperands
pub enum KerningOperands<'a> {
Names {
left: Cow<'a, str>,
right: Cow<'a, str>,
},
Hex {
left: Cow<'a, str>,
right: Cow<'a, str>,
},
}Expand description
Pair operands retain the distinction between glyph names and encoded hexadecimal values.
Variants§
Names
Named operands used by KP, KPX, and KPY.
Hex
KPH operands, stored as hexadecimal digits without brackets or encoding conversion.
Implementations§
§impl KerningOperands<'_>
impl KerningOperands<'_>
pub fn into_owned(self) -> KerningOperands<'static>
pub fn into_owned(self) -> KerningOperands<'static>
Detach both operands from their source.
Trait Implementations§
§impl<'a> Clone for KerningOperands<'a>
impl<'a> Clone for KerningOperands<'a>
§fn clone(&self) -> KerningOperands<'a>
fn clone(&self) -> KerningOperands<'a>
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 more§impl<'a> Debug for KerningOperands<'a>
impl<'a> Debug for KerningOperands<'a>
impl<'a> Eq for KerningOperands<'a>
§impl<'a> PartialEq for KerningOperands<'a>
impl<'a> PartialEq for KerningOperands<'a>
§fn eq(&self, other: &KerningOperands<'a>) -> bool
fn eq(&self, other: &KerningOperands<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for KerningOperands<'a>
Auto Trait Implementations§
impl<'a> Freeze for KerningOperands<'a>
impl<'a> RefUnwindSafe for KerningOperands<'a>
impl<'a> Send for KerningOperands<'a>
impl<'a> Sync for KerningOperands<'a>
impl<'a> Unpin for KerningOperands<'a>
impl<'a> UnsafeUnpin for KerningOperands<'a>
impl<'a> UnwindSafe for KerningOperands<'a>
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