Enum allsorts::cff::CustomEncoding
source · [−]pub enum CustomEncoding<'a> {
Format0 {
codes: ReadArray<'a, U8>,
},
Format1 {
ranges: ReadArray<'a, Range<u8, u8>>,
},
}
Variants
Format0
Format1
Trait Implementations
sourceimpl<'a> Clone for CustomEncoding<'a>
impl<'a> Clone for CustomEncoding<'a>
sourcefn clone(&self) -> CustomEncoding<'a>
fn clone(&self) -> CustomEncoding<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> ReadBinary<'a> for CustomEncoding<'a>
impl<'a> ReadBinary<'a> for CustomEncoding<'a>
type HostType = CustomEncoding<'a>
fn read(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
sourceimpl<'a> WriteBinary<&CustomEncoding<'a>> for CustomEncoding<'a>
impl<'a> WriteBinary<&CustomEncoding<'a>> for CustomEncoding<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
encoding: &Self
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
encoding: &Self
) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for CustomEncoding<'a>
impl<'a> Send for CustomEncoding<'a>
impl<'a> Sync for CustomEncoding<'a>
impl<'a> Unpin for CustomEncoding<'a>
impl<'a> UnwindSafe for CustomEncoding<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for T where
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 T where
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for T where
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
.