pub struct SimpleGlyph<'a> {
pub end_pts_of_contours: Vec<u16>,
pub instructions: &'a [u8],
pub flags: Vec<SimpleGlyphFlag>,
pub coordinates: Vec<Point>,
}
Fields
end_pts_of_contours: Vec<u16>
instructions: &'a [u8]
flags: Vec<SimpleGlyphFlag>
coordinates: Vec<Point>
Implementations
sourceimpl<'a> SimpleGlyph<'a>
impl<'a> SimpleGlyph<'a>
pub fn contours(&self) -> impl Iterator<Item = &[Point]>
pub fn contour_flags(&self) -> impl Iterator<Item = &[SimpleGlyphFlag]>
sourceimpl<'a> SimpleGlyph<'a>
impl<'a> SimpleGlyph<'a>
pub fn bounding_box(&self) -> BoundingBox
Trait Implementations
sourceimpl<'a> Clone for SimpleGlyph<'a>
impl<'a> Clone for SimpleGlyph<'a>
sourcefn clone(&self) -> SimpleGlyph<'a>
fn clone(&self) -> SimpleGlyph<'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 SimpleGlyph<'a>
impl<'a> Debug for SimpleGlyph<'a>
sourceimpl<'a> PartialEq<SimpleGlyph<'a>> for SimpleGlyph<'a>
impl<'a> PartialEq<SimpleGlyph<'a>> for SimpleGlyph<'a>
sourcefn eq(&self, other: &SimpleGlyph<'a>) -> bool
fn eq(&self, other: &SimpleGlyph<'a>) -> bool
sourceimpl<'a> ReadBinaryDep<'a> for SimpleGlyph<'a>
impl<'a> ReadBinaryDep<'a> for SimpleGlyph<'a>
type Args = u16
type HostType = SimpleGlyph<'a>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
number_of_contours: Self::Args
) -> Result<Self, ParseError>
sourceimpl<'a> WriteBinary<SimpleGlyph<'a>> for SimpleGlyph<'a>
impl<'a> WriteBinary<SimpleGlyph<'a>> for SimpleGlyph<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
glyph: SimpleGlyph<'_>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
glyph: SimpleGlyph<'_>
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.impl<'a> StructuralPartialEq for SimpleGlyph<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SimpleGlyph<'a>
impl<'a> Send for SimpleGlyph<'a>
impl<'a> Sync for SimpleGlyph<'a>
impl<'a> Unpin for SimpleGlyph<'a>
impl<'a> UnwindSafe for SimpleGlyph<'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
sourceimpl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.