Trait webtype::Walue

source ·
pub trait Walue<'l>: Sized {
    type Parameter;

    // Required method
    fn read<T>(tape: &mut T, parameter: Self::Parameter) -> Result<Self, Error>
       where T: Tape;
}
Expand description

A type that can be read given a parameter.

Required Associated Types§

source

type Parameter

The parameter type.

Required Methods§

source

fn read<T>(tape: &mut T, parameter: Self::Parameter) -> Result<Self, Error>where T: Tape,

Read a value.

Implementations on Foreign Types§

source§

impl Walue<'static> for Base

§

type Parameter = (u64, u16)

source§

fn read<T>( tape: &mut T, _: <Base as Walue<'static>>::Parameter ) -> Result<Base, Error>where T: Tape,

source§

impl Walue<'static> for Mark2

§

type Parameter = (u64, u16)

source§

fn read<T>( tape: &mut T, _: <Mark2 as Walue<'static>>::Parameter ) -> Result<Mark2, Error>where T: Tape,

source§

impl Walue<'static> for Mark2s

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, class_count: u16) -> Result<Mark2s, Error>where T: Tape,

source§

impl Walue<'static> for Table

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, kind: u16) -> Result<Table, Error>where T: Tape,

source§

impl Walue<'static> for Component

§

type Parameter = (u64, u16)

source§

fn read<T>( tape: &mut T, _: <Component as Walue<'static>>::Parameter ) -> Result<Component, Error>where T: Tape,

source§

impl Walue<'static> for Table

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, kind: u16) -> Result<Table, Error>where T: Tape,

source§

impl Walue<'static> for Passage

§

type Parameter = u64

source§

fn read<T>(tape: &mut T, position: u64) -> Result<Passage, Error>where T: Tape,

source§

impl Walue<'static> for Mark1

§

type Parameter = u64

source§

fn read<T>(tape: &mut T, position: u64) -> Result<Mark1, Error>where T: Tape,

source§

impl Walue<'static> for Single

§

type Parameter = (u64, SingleFlags)

source§

fn read<T>( tape: &mut T, _: <Single as Walue<'static>>::Parameter ) -> Result<Single, Error>where T: Tape,

source§

impl Walue<'static> for Pair1

§

type Parameter = (u64, SingleFlags, SingleFlags)

source§

fn read<T>( tape: &mut T, _: <Pair1 as Walue<'static>>::Parameter ) -> Result<Pair1, Error>where T: Tape,

source§

impl Walue<'static> for Pair2

§

type Parameter = (u64, SingleFlags, SingleFlags)

source§

fn read<T>( tape: &mut T, _: <Pair2 as Walue<'static>>::Parameter ) -> Result<Pair2, Error>where T: Tape,

source§

impl Walue<'static> for Bases

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, class_count: u16) -> Result<Bases, Error>where T: Tape,

source§

impl Walue<'static> for Pair1s

§

type Parameter = (u64, SingleFlags, SingleFlags)

source§

fn read<T>( tape: &mut T, parameter: <Pair1s as Walue<'static>>::Parameter ) -> Result<Pair1s, Error>where T: Tape,

source§

impl Walue<'static> for Ligatures

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, class_count: u16) -> Result<Ligatures, Error>where T: Tape,

source§

impl Walue<'static> for Pair2s

§

type Parameter = (u64, u16, SingleFlags, SingleFlags)

source§

fn read<T>( tape: &mut T, _: <Pair2s as Walue<'static>>::Parameter ) -> Result<Pair2s, Error>where T: Tape,

source§

impl Walue<'static> for InstanceRecord

§

type Parameter = usize

source§

fn read<T>( tape: &mut T, axis_count: <InstanceRecord as Walue<'static>>::Parameter ) -> Result<InstanceRecord, Error>where T: Tape,

source§

impl Walue<'static> for Ligature

§

type Parameter = u16

source§

fn read<T>(tape: &mut T, class_count: u16) -> Result<Ligature, Error>where T: Tape,

§

impl Walue<'static> for CharacterStrings

§

type Parameter = i32

§

fn read<T>(tape: &mut T, format: i32) -> Result<CharacterStrings, Error>where T: Tape,

§

impl<'l> Walue<'l> for Encoding

§

type Parameter = &'l CharacterStrings

§

fn read<T>( tape: &mut T, character_strings: <Encoding as Walue<'l>>::Parameter ) -> Result<Encoding, Error>where T: Tape,

§

impl<'l> Walue<'l> for Record

§

type Parameter = (u64, &'l Operations)

§

fn read<T>( tape: &mut T, _: <Record as Walue<'l>>::Parameter ) -> Result<Record, Error>where T: Tape,

§

impl<'l> Walue<'l> for Record

§

type Parameter = (u64, &'l Operations, &'l CharacterStrings)

§

fn read<T>( tape: &mut T, _: <Record as Walue<'l>>::Parameter ) -> Result<Record, Error>where T: Tape,

§

impl Walue<'static> for CharacterSet2

§

type Parameter = usize

§

fn read<T>(tape: &mut T, glyph_count: usize) -> Result<CharacterSet2, Error>where T: Tape,

§

impl Walue<'static> for CharacterSet0

§

type Parameter = usize

§

fn read<T>(tape: &mut T, glyph_count: usize) -> Result<CharacterSet0, Error>where T: Tape,

§

impl<'l> Walue<'l> for Encoding0

§

type Parameter = &'l CharacterStrings

§

fn read<T>( tape: &mut T, character_strings: <Encoding0 as Walue<'l>>::Parameter ) -> Result<Encoding0, Error>where T: Tape,

§

impl<'l> Walue<'l> for Record

§

type Parameter = (u64, &'l Operations, &'l CharacterStrings)

§

fn read<T>( tape: &mut T, _: <Record as Walue<'l>>::Parameter ) -> Result<Record, Error>where T: Tape,

§

impl Walue<'static> for CharacterSet

§

type Parameter = usize

§

fn read<T>(tape: &mut T, glyph_count: usize) -> Result<CharacterSet, Error>where T: Tape,

§

impl Walue<'static> for CharacterSet1

§

type Parameter = usize

§

fn read<T>(tape: &mut T, glyph_count: usize) -> Result<CharacterSet1, Error>where T: Tape,

§

impl<'l> Walue<'l> for RecordInner

§

type Parameter = (u64, &'l Operations)

§

fn read<T>( tape: &mut T, _: <RecordInner as Walue<'l>>::Parameter ) -> Result<RecordInner, Error>where T: Tape,

§

impl Walue<'static> for Offset

§

type Parameter = u8

§

fn read<T>(tape: &mut T, size: u8) -> Result<Offset, Error>where T: Tape,

source§

impl<V> Walue<'static> for Vec<V, Global>where V: Value,

§

type Parameter = usize

source§

fn read<T>(tape: &mut T, count: usize) -> Result<Vec<V, Global>, Error>where T: Tape,

§

impl Walue<'static> for SimpleDescription

§

type Parameter = usize

§

fn read<T>( tape: &mut T, contour_count: usize ) -> Result<SimpleDescription, Error>where T: Tape,

§

impl<'l> Walue<'l> for GlyphData

§

type Parameter = &'l GlyphMapping

§

fn read<T>(tape: &mut T, mapping: &GlyphMapping) -> Result<GlyphData, Error>where T: Tape,

§

impl<'l> Walue<'l> for GlyphMapping

§

type Parameter = (&'l FontHeader, &'l MaximumProfile)

§

fn read<T>( tape: &mut T, _: <GlyphMapping as Walue<'l>>::Parameter ) -> Result<GlyphMapping, Error>where T: Tape,

§

impl Walue<'static> for LanguageID

§

type Parameter = PlatformID

§

fn read<T>(tape: &mut T, platform_id: PlatformID) -> Result<LanguageID, Error>where T: Tape,

§

impl Walue<'static> for Description

§

type Parameter = i16

§

fn read<T>(tape: &mut T, contour_count: i16) -> Result<Description, Error>where T: Tape,

§

impl<'l> Walue<'l> for HorizontalMetrics

§

type Parameter = (&'l HorizontalHeader, &'l MaximumProfile)

§

fn read<T>( tape: &mut T, _: <HorizontalMetrics as Walue<'l>>::Parameter ) -> Result<HorizontalMetrics, Error>where T: Tape,

§

impl Walue<'static> for Options

§

type Parameter = ComponentFlags

§

fn read<T>(tape: &mut T, flags: ComponentFlags) -> Result<Options, Error>where T: Tape,

§

impl Walue<'static> for Arguments

§

type Parameter = ComponentFlags

§

fn read<T>(tape: &mut T, flags: ComponentFlags) -> Result<Arguments, Error>where T: Tape,

Implementors§