Trait opentype::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 Offset

§

type Parameter = u8

source§

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

source§

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

§

type Parameter = &'l CharacterStrings

source§

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

source§

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

§

type Parameter = (u64, &'l Operations)

source§

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

source§

impl Walue<'static> for CharacterSet0

§

type Parameter = usize

source§

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

source§

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

§

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

source§

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

source§

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

§

type Parameter = (u64, &'l Operations)

source§

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

source§

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

§

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

source§

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

source§

impl Walue<'static> for CharacterSet2

§

type Parameter = usize

source§

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

source§

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

§

type Parameter = &'l CharacterStrings

source§

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

source§

impl Walue<'static> for CharacterSet

§

type Parameter = usize

source§

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

source§

impl Walue<'static> for CharacterSet1

§

type Parameter = usize

source§

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

source§

impl Walue<'static> for CharacterStrings

§

type Parameter = i32

source§

fn read<T>(tape: &mut T, format: i32) -> Result<CharacterStrings, 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,

source§

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

§

type Parameter = &'l GlyphMapping

source§

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

source§

impl Walue<'static> for Options

source§

impl Walue<'static> for SimpleDescription

§

type Parameter = usize

source§

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

source§

impl Walue<'static> for Arguments

source§

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

source§

impl Walue<'static> for Description

§

type Parameter = i16

source§

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

source§

impl Walue<'static> for LanguageID

§

type Parameter = PlatformID

source§

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

source§

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

Implementors§

source§

impl Walue<'static> for opentype::glyph_positioning::Table

source§

impl Walue<'static> for opentype::glyph_substitution::Table

source§

impl Walue<'static> for Base

§

type Parameter = (u64, u16)

source§

impl Walue<'static> for Bases

source§

impl Walue<'static> for Component

§

type Parameter = (u64, u16)

source§

impl Walue<'static> for Ligature

source§

impl Walue<'static> for Ligatures

source§

impl Walue<'static> for Mark1

source§

impl Walue<'static> for Mark2

§

type Parameter = (u64, u16)

source§

impl Walue<'static> for Mark2s

source§

impl Walue<'static> for Pair1

source§

impl Walue<'static> for Pair1s

source§

impl Walue<'static> for Pair2

source§

impl Walue<'static> for Pair2s

source§

impl Walue<'static> for Passage

source§

impl Walue<'static> for Single