Struct allsorts::tables::glyf::CompositeGlyph
source · pub struct CompositeGlyph<'a> {
pub bounding_box: BoundingBox,
pub glyphs: Vec<CompositeGlyphComponent>,
pub instructions: &'a [u8],
pub phantom_points: Option<Box<PhantomPoints>>,
}
Fields§
§bounding_box: BoundingBox
§glyphs: Vec<CompositeGlyphComponent>
§instructions: &'a [u8]
§phantom_points: Option<Box<PhantomPoints>>
Phantom points, only populated when applying glyph variation deltas
Trait Implementations§
source§impl<'a> Clone for CompositeGlyph<'a>
impl<'a> Clone for CompositeGlyph<'a>
source§fn clone(&self) -> CompositeGlyph<'a>
fn clone(&self) -> CompositeGlyph<'a>
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<'a> Debug for CompositeGlyph<'a>
impl<'a> Debug for CompositeGlyph<'a>
source§impl<'a> From<CompositeGlyph<'a>> for GlyfRecord<'a>
impl<'a> From<CompositeGlyph<'a>> for GlyfRecord<'a>
source§fn from(glyph: CompositeGlyph<'a>) -> GlyfRecord<'a>
fn from(glyph: CompositeGlyph<'a>) -> GlyfRecord<'a>
Converts to this type from the input type.
source§impl<'a> PartialEq for CompositeGlyph<'a>
impl<'a> PartialEq for CompositeGlyph<'a>
source§fn eq(&self, other: &CompositeGlyph<'a>) -> bool
fn eq(&self, other: &CompositeGlyph<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ReadBinary for CompositeGlyph<'_>
impl ReadBinary for CompositeGlyph<'_>
type HostType<'a> = CompositeGlyph<'a>
fn read<'a>(ctxt: &mut ReadCtxt<'a>) -> Result<Self::HostType<'a>, ParseError>
source§impl WriteBinary for CompositeGlyph<'_>
impl WriteBinary for CompositeGlyph<'_>
impl<'a> StructuralPartialEq for CompositeGlyph<'a>
Auto Trait Implementations§
impl<'a> Freeze for CompositeGlyph<'a>
impl<'a> RefUnwindSafe for CompositeGlyph<'a>
impl<'a> Send for CompositeGlyph<'a>
impl<'a> Sync for CompositeGlyph<'a>
impl<'a> Unpin for CompositeGlyph<'a>
impl<'a> UnwindSafe for CompositeGlyph<'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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
type Args<'a> = ()
type HostType<'a> = <T as ReadBinary>::HostType<'a>
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, _: <T as ReadBinaryDep>::Args<'_>, ) -> Result<<T as ReadBinaryDep>::HostType<'a>, ParseError>
source§impl<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
.source§fn 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
.