Enum allsorts_no_std::tables::cmap::CmapSubtable [−][src]
Variants
Fields of Format2
Fields of Format4
Fields of Format12
language: u32
groups: ReadArray<'a, SequentialMapGroup>
Implementations
impl<'a> CmapSubtable<'a>
[src]
pub fn map_glyph(&self, ch: u32) -> Result<Option<u16>, ParseError>
[src]
pub fn to_owned(&self) -> Option<OwnedCmapSubtable>
[src]
Returns an owned::CmapSubtable
. Will only return None
if self
is
CmapSubtable::Format2
as support for converting from this format is not yet implemented.
Trait Implementations
impl<'a> ReadBinary<'a> for CmapSubtable<'a>
[src]
impl<'a> WriteBinary<&'_ CmapSubtable<'a>> for CmapSubtable<'a>
[src]
type Output = ()
The type of the value returned by write
.
fn write<C: WriteContext>(
ctxt: &mut C,
table: &CmapSubtable<'a>
) -> Result<(), WriteError>
[src]
ctxt: &mut C,
table: &CmapSubtable<'a>
) -> Result<(), WriteError>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CmapSubtable<'a>
impl<'a> Send for CmapSubtable<'a>
impl<'a> Sync for CmapSubtable<'a>
impl<'a> Unpin for CmapSubtable<'a>
impl<'a> UnwindSafe for CmapSubtable<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
[src]
T: WriteBinary<HostType>,
type Args = ()
The type of the arguments supplied to write_dep
.
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
[src]
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,