pub enum GlyfRecord<'a> {
Empty,
Present {
number_of_contours: i16,
scope: ReadScope<'a>,
},
Parsed(Glyph<'a>),
}
Variants
Empty
Present
Parsed(Glyph<'a>)
Implementations
sourceimpl<'a> GlyfRecord<'a>
impl<'a> GlyfRecord<'a>
pub fn number_of_contours(&self) -> i16
pub fn is_composite(&self) -> bool
sourcepub fn parse(&mut self) -> Result<(), ParseError>
pub fn parse(&mut self) -> Result<(), ParseError>
Turn self from GlyfRecord::Present into GlyfRecord::Parsed
Trait Implementations
sourceimpl<'a> Clone for GlyfRecord<'a>
impl<'a> Clone for GlyfRecord<'a>
sourcefn clone(&self) -> GlyfRecord<'a>
fn clone(&self) -> GlyfRecord<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for GlyfRecord<'a>
impl<'a> Debug for GlyfRecord<'a>
sourceimpl<'a> PartialEq<GlyfRecord<'a>> for GlyfRecord<'a>
impl<'a> PartialEq<GlyfRecord<'a>> for GlyfRecord<'a>
sourcefn eq(&self, other: &GlyfRecord<'a>) -> bool
fn eq(&self, other: &GlyfRecord<'a>) -> bool
impl<'a> StructuralPartialEq for GlyfRecord<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GlyfRecord<'a>
impl<'a> Send for GlyfRecord<'a>
impl<'a> Sync for GlyfRecord<'a>
impl<'a> Unpin for GlyfRecord<'a>
impl<'a> UnwindSafe for GlyfRecord<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more