Enum allsorts::layout::SingleSubst
source · [−]pub enum SingleSubst {
Format1 {
coverage: Rc<Coverage>,
delta_glyph_index: i16,
},
Format2 {
coverage: Rc<Coverage>,
substitute_glyph_array: Vec<u16>,
},
}
Variants
Format1
Format2
Implementations
sourceimpl SingleSubst
impl SingleSubst
pub fn apply_glyph(&self, glyph: u16) -> Result<Option<u16>, ParseError>
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for SingleSubst
impl<'a> ReadBinaryDep<'a> for SingleSubst
type HostType = SingleSubst
type Args = Rc<LayoutCacheData<GSUB>>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
Auto Trait Implementations
impl RefUnwindSafe for SingleSubst
impl !Send for SingleSubst
impl !Sync for SingleSubst
impl Unpin for SingleSubst
impl UnwindSafe for SingleSubst
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