pub enum FDSelect<'a> {
Format0 {
glyph_font_dict_indices: ReadArrayCow<'a, U8>,
},
Format3 {
ranges: ReadArrayCow<'a, Range<u16, u8>>,
sentinel: u16,
},
}
Expand description
Font DICT select as described in Section 19 of Technical Note #5176
Variants
Format0
Fields
glyph_font_dict_indices: ReadArrayCow<'a, U8>
Format3
Implementations
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for FDSelect<'a>
impl<'a> ReadBinaryDep<'a> for FDSelect<'a>
sourceimpl<'a> WriteBinary<&FDSelect<'a>> for FDSelect<'a>
impl<'a> WriteBinary<&FDSelect<'a>> for FDSelect<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
fd_select: &Self
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
fd_select: &Self
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.Auto Trait Implementations
impl<'a> RefUnwindSafe for FDSelect<'a>
impl<'a> Send for FDSelect<'a>
impl<'a> Sync for FDSelect<'a>
impl<'a> Unpin for FDSelect<'a>
impl<'a> UnwindSafe for FDSelect<'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
.