Enum allsorts::cff::CustomCharset
source · [−]pub enum CustomCharset<'a> {
Format0 {
glyphs: ReadArrayCow<'a, U16Be>,
},
Format1 {
ranges: ReadArrayCow<'a, Range<u16, u8>>,
},
Format2 {
ranges: ReadArrayCow<'a, Range<u16, u16>>,
},
}
Variants
Format0
Fields
glyphs: ReadArrayCow<'a, U16Be>
Format1
Fields
ranges: ReadArrayCow<'a, Range<u16, u8>>
Format2
Fields
ranges: ReadArrayCow<'a, Range<u16, u16>>
Implementations
sourceimpl<'a> CustomCharset<'a>
impl<'a> CustomCharset<'a>
Trait Implementations
sourceimpl<'a> Clone for CustomCharset<'a>
impl<'a> Clone for CustomCharset<'a>
sourcefn clone(&self) -> CustomCharset<'a>
fn clone(&self) -> CustomCharset<'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> ReadBinaryDep<'a> for CustomCharset<'a>
impl<'a> ReadBinaryDep<'a> for CustomCharset<'a>
type Args = usize
type HostType = CustomCharset<'a>
fn read_dep(ctxt: &mut ReadCtxt<'a>, n_glyphs: usize) -> Result<Self, ParseError>
sourceimpl<'a> WriteBinary<&CustomCharset<'a>> for CustomCharset<'a>
impl<'a> WriteBinary<&CustomCharset<'a>> for CustomCharset<'a>
sourcefn write<C: WriteContext>(ctxt: &mut C, charset: &Self) -> Result<(), WriteError>
fn write<C: WriteContext>(ctxt: &mut C, charset: &Self) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.Auto Trait Implementations
impl<'a> RefUnwindSafe for CustomCharset<'a>
impl<'a> Send for CustomCharset<'a>
impl<'a> Sync for CustomCharset<'a>
impl<'a> Unpin for CustomCharset<'a>
impl<'a> UnwindSafe for CustomCharset<'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
.