Enum allsorts::tables::glyf::CompositeGlyphArgument
source · pub enum CompositeGlyphArgument {
U8(u8),
I8(i8),
U16(u16),
I16(i16),
}
Variants§
Trait Implementations§
source§impl Clone for CompositeGlyphArgument
impl Clone for CompositeGlyphArgument
source§fn clone(&self) -> CompositeGlyphArgument
fn clone(&self) -> CompositeGlyphArgument
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 Debug for CompositeGlyphArgument
impl Debug for CompositeGlyphArgument
source§impl From<CompositeGlyphArgument> for i32
impl From<CompositeGlyphArgument> for i32
source§fn from(arg: CompositeGlyphArgument) -> Self
fn from(arg: CompositeGlyphArgument) -> Self
Converts to this type from the input type.
source§impl PartialEq for CompositeGlyphArgument
impl PartialEq for CompositeGlyphArgument
source§fn eq(&self, other: &CompositeGlyphArgument) -> bool
fn eq(&self, other: &CompositeGlyphArgument) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ReadBinaryDep for CompositeGlyphArgument
impl ReadBinaryDep for CompositeGlyphArgument
type Args<'a> = CompositeGlyphFlag
type HostType<'a> = CompositeGlyphArgument
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, flags: Self::Args<'_>, ) -> Result<Self, ParseError>
source§impl TryFrom<CompositeGlyphArgument> for u16
impl TryFrom<CompositeGlyphArgument> for u16
§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
source§impl WriteBinary for CompositeGlyphArgument
impl WriteBinary for CompositeGlyphArgument
source§fn write<C: WriteContext>(
ctxt: &mut C,
arg: CompositeGlyphArgument,
) -> Result<(), WriteError>
fn write<C: WriteContext>( ctxt: &mut C, arg: CompositeGlyphArgument, ) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.impl Copy for CompositeGlyphArgument
impl StructuralPartialEq for CompositeGlyphArgument
Auto Trait Implementations§
impl Freeze for CompositeGlyphArgument
impl RefUnwindSafe for CompositeGlyphArgument
impl Send for CompositeGlyphArgument
impl Sync for CompositeGlyphArgument
impl Unpin for CompositeGlyphArgument
impl UnwindSafe for CompositeGlyphArgument
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, 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
.