[][src]Trait flexbuffers::Pushable

pub trait Pushable: Sealed + Sized {
    pub fn push_to_builder(self, _: &mut Builder) { ... }
}

Types that implement the Pushable trait can be written into a Flexbuffer.

All Rust's standard numbers, u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, can all be pushed. They are FlexBufferType::{UInt, Int, Float}. Flexbuffers chooses the smallest width that can represent the given number. Strings can pe pushed, they become FlexBufferType::String and are stored with both a length and null terminator.

  • For convenience and speed push typed vectors using rust arrays and slices. Doing so will immediately serialize the data, skipping the Builder's internal cache.

  • Pushable cannot not be implemented by any downstream crates.

Provided methods

pub fn push_to_builder(self, _: &mut Builder)[src]

Loading content...

Implementations on Foreign Types

impl Pushable for ()[src]

impl Pushable for &str[src]

impl Pushable for bool[src]

impl Pushable for u8[src]

impl Pushable for u16[src]

impl Pushable for u32[src]

impl Pushable for u64[src]

impl Pushable for i8[src]

impl Pushable for i16[src]

impl Pushable for i32[src]

impl Pushable for i64[src]

impl Pushable for f32[src]

impl Pushable for f64[src]

impl Pushable for &[u8][src]

impl Pushable for &[u16][src]

impl Pushable for &[u32][src]

impl Pushable for &[u64][src]

impl Pushable for &[i8][src]

impl Pushable for &[i16][src]

impl Pushable for &[i32][src]

impl Pushable for &[i64][src]

impl Pushable for &[f32][src]

impl Pushable for &[f64][src]

impl Pushable for &[bool][src]

impl Pushable for &Vec<u8>[src]

impl Pushable for &Vec<u16>[src]

impl Pushable for &Vec<u32>[src]

impl Pushable for &Vec<u64>[src]

impl Pushable for &Vec<i8>[src]

impl Pushable for &Vec<i16>[src]

impl Pushable for &Vec<i32>[src]

impl Pushable for &Vec<i64>[src]

impl Pushable for &Vec<f32>[src]

impl Pushable for &Vec<f64>[src]

impl Pushable for &Vec<bool>[src]

impl Pushable for &[u8; 0][src]

impl Pushable for &[u16; 0][src]

impl Pushable for &[u32; 0][src]

impl Pushable for &[u64; 0][src]

impl Pushable for &[i8; 0][src]

impl Pushable for &[i16; 0][src]

impl Pushable for &[i32; 0][src]

impl Pushable for &[i64; 0][src]

impl Pushable for &[f32; 0][src]

impl Pushable for &[f64; 0][src]

impl Pushable for &[bool; 0][src]

impl Pushable for &[u8; 1][src]

impl Pushable for &[u16; 1][src]

impl Pushable for &[u32; 1][src]

impl Pushable for &[u64; 1][src]

impl Pushable for &[i8; 1][src]

impl Pushable for &[i16; 1][src]

impl Pushable for &[i32; 1][src]

impl Pushable for &[i64; 1][src]

impl Pushable for &[f32; 1][src]

impl Pushable for &[f64; 1][src]

impl Pushable for &[bool; 1][src]

impl Pushable for &[u8; 2][src]

impl Pushable for &[u16; 2][src]

impl Pushable for &[u32; 2][src]

impl Pushable for &[u64; 2][src]

impl Pushable for &[i8; 2][src]

impl Pushable for &[i16; 2][src]

impl Pushable for &[i32; 2][src]

impl Pushable for &[i64; 2][src]

impl Pushable for &[f32; 2][src]

impl Pushable for &[f64; 2][src]

impl Pushable for &[bool; 2][src]

impl Pushable for &[u8; 3][src]

impl Pushable for &[u16; 3][src]

impl Pushable for &[u32; 3][src]

impl Pushable for &[u64; 3][src]

impl Pushable for &[i8; 3][src]

impl Pushable for &[i16; 3][src]

impl Pushable for &[i32; 3][src]

impl Pushable for &[i64; 3][src]

impl Pushable for &[f32; 3][src]

impl Pushable for &[f64; 3][src]

impl Pushable for &[bool; 3][src]

impl Pushable for &[u8; 4][src]

impl Pushable for &[u16; 4][src]

impl Pushable for &[u32; 4][src]

impl Pushable for &[u64; 4][src]

impl Pushable for &[i8; 4][src]

impl Pushable for &[i16; 4][src]

impl Pushable for &[i32; 4][src]

impl Pushable for &[i64; 4][src]

impl Pushable for &[f32; 4][src]

impl Pushable for &[f64; 4][src]

impl Pushable for &[bool; 4][src]

impl Pushable for &[u8; 5][src]

impl Pushable for &[u16; 5][src]

impl Pushable for &[u32; 5][src]

impl Pushable for &[u64; 5][src]

impl Pushable for &[i8; 5][src]

impl Pushable for &[i16; 5][src]

impl Pushable for &[i32; 5][src]

impl Pushable for &[i64; 5][src]

impl Pushable for &[f32; 5][src]

impl Pushable for &[f64; 5][src]

impl Pushable for &[bool; 5][src]

impl Pushable for &[u8; 6][src]

impl Pushable for &[u16; 6][src]

impl Pushable for &[u32; 6][src]

impl Pushable for &[u64; 6][src]

impl Pushable for &[i8; 6][src]

impl Pushable for &[i16; 6][src]

impl Pushable for &[i32; 6][src]

impl Pushable for &[i64; 6][src]

impl Pushable for &[f32; 6][src]

impl Pushable for &[f64; 6][src]

impl Pushable for &[bool; 6][src]

Loading content...

Implementors

impl Pushable for IndirectFloat[src]

impl Pushable for IndirectInt[src]

impl Pushable for IndirectUInt[src]

impl<'a> Pushable for Blob<'a>[src]

Loading content...