pub struct Glyph<'a> {
pub number_of_contours: i16,
pub bounding_box: BoundingBox,
pub data: GlyphData<'a>,
}
Fields
number_of_contours: i16
bounding_box: BoundingBox
data: GlyphData<'a>
Trait Implementations
sourceimpl<'a> ReadBinary<'a> for Glyph<'a>
impl<'a> ReadBinary<'a> for Glyph<'a>
sourceimpl<'a> WriteBinary<Glyph<'a>> for Glyph<'a>
impl<'a> WriteBinary<Glyph<'a>> for Glyph<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
glyph: Glyph<'a>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
glyph: Glyph<'a>
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.impl<'a> StructuralPartialEq for Glyph<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Glyph<'a>
impl<'a> Send for Glyph<'a>
impl<'a> Sync for Glyph<'a>
impl<'a> Unpin for Glyph<'a>
impl<'a> UnwindSafe for Glyph<'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<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
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
.