Trait postscript::Value

source ·
pub trait Value: Sized {
    // Required method
    fn read<T>(tape: &mut T) -> Result<Self, Error>
where T: Tape; }
Expand description

A type that can be read.

Required Methods§

source

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

Read a value.

Implementations on Foreign Types§

source§

impl Value for i16

source§

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

source§

impl Value for i32

source§

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

source§

impl Value for u32

source§

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

source§

impl Value for u8

source§

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

source§

impl Value for [u8; 3]

source§

fn read<T>(tape: &mut T) -> Result<[u8; 3], Error>where
T: Tape,

source§

impl Value for [u8; 4]

source§

fn read<T>(tape: &mut T) -> Result<[u8; 4], Error>where
T: Tape,

source§

impl Value for [u8; 10]

source§

fn read<T>(tape: &mut T) -> Result<[u8; 10], Error>where
T: Tape,

source§

impl Value for i64

source§

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

source§

impl Value for i8

source§

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

source§

impl Value for [i8; 4]

source§

fn read<T>(tape: &mut T) -> Result<[i8; 4], Error>where
T: Tape,

source§

impl Value for u16

source§

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

Implementors§