Trait flatbuffers::Push[][src]

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

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

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

Associated Types

Required methods

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

Provided methods

fn size() -> usize[src]

fn alignment() -> PushAlignment[src]

Implementations on Foreign Types

impl Push for bool[src]

type Output = bool

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

impl Push for u8[src]

type Output = u8

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

impl Push for i8[src]

type Output = i8

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

impl Push for u16[src]

type Output = u16

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

impl Push for i16[src]

type Output = i16

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

impl Push for u32[src]

type Output = u32

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

impl Push for i32[src]

type Output = i32

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

impl Push for u64[src]

type Output = u64

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

impl Push for i64[src]

type Output = i64

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

impl Push for f32[src]

type Output = f32

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

impl Push for f64[src]

type Output = f64

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

Implementors

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

type Output = Self

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

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

type Output = Self

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

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

type Output = Self

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

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

type Output = ForwardsUOffset<T>

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