[][src]Trait fbs::Push

pub trait Push: Sized {
    type Output;
    fn push(&self, dst: &mut [u8], _rest: &[u8]);

    fn size() -> usize { ... }
fn alignment() -> PushAlignment { ... } }

Trait to abstract over functionality needed to write values (either owned or referenced). Used in FlatBufferBuilder and implemented for generated types.

Associated Types

type Output

Loading content...

Required methods

fn push(&self, dst: &mut [u8], _rest: &[u8])

Loading content...

Provided methods

fn size() -> usize

fn alignment() -> PushAlignment

Loading content...

Implementations on Foreign Types

impl Push for bool[src]

type Output = bool

impl Push for u8[src]

type Output = u8

impl Push for i8[src]

type Output = i8

impl Push for u16[src]

type Output = u16

impl Push for i16[src]

type Output = i16

impl Push for u32[src]

type Output = u32

impl Push for i32[src]

type Output = i32

impl Push for u64[src]

type Output = u64

impl Push for i64[src]

type Output = i64

impl Push for f32[src]

type Output = f32

impl Push for f64[src]

type Output = f64

Loading content...

Implementors

impl<T> Push for BackwardsSOffset<T>[src]

type Output = Self

impl<T> Push for ForwardsUOffset<T>[src]

type Output = Self

impl<T> Push for ForwardsVOffset<T>[src]

type Output = Self

impl<T> Push for WIPOffset<T>[src]

type Output = ForwardsUOffset<T>

Loading content...