Trait ttf_parser::parser::FromSlice

source ·
pub trait FromSlice<'a>: Sized {
    // Required method
    fn parse(data: &'a [u8]) -> Option<Self>;
}
Expand description

A trait for parsing raw binary data of variable size.

This is a low-level, internal trait that should not be used directly.

Required Methods§

source

fn parse(data: &'a [u8]) -> Option<Self>

Parses an object from a raw data.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> FromSlice<'a> for Coverage<'a>

source§

impl<'a> FromSlice<'a> for ChainedSequenceRule<'a>

source§

impl<'a> FromSlice<'a> for SequenceRule<'a>

source§

impl<'a> FromSlice<'a> for Lookup<'a>

source§

impl<'a> FromSlice<'a> for AlternateSet<'a>

source§

impl<'a> FromSlice<'a> for Ligature<'a>

source§

impl<'a> FromSlice<'a> for Sequence<'a>

source§

impl<'a> FromSlice<'a> for Constants<'a>

source§

impl<'a> FromSlice<'a> for GlyphAssembly<'a>

source§

impl<'a> FromSlice<'a> for GlyphConstruction<'a>

source§

impl<'a> FromSlice<'a> for GlyphInfo<'a>

source§

impl<'a> FromSlice<'a> for Kern<'a>

source§

impl<'a> FromSlice<'a> for KernInfos<'a>

source§

impl<'a> FromSlice<'a> for MathValues<'a>

source§

impl<'a> FromSlice<'a> for Variants<'a>

source§

impl<'a> FromSlice<'a> for ChainedSequenceRuleSet<'a>

source§

impl<'a> FromSlice<'a> for SequenceRuleSet<'a>

source§

impl<'a> FromSlice<'a> for LigatureSet<'a>