pub struct FlatBuffer {
pub vtable: Option<Rc<RefCell<Vec<u32>>>>,
pub data: Option<Rc<RefCell<Vec<u8>>>>,
/* private fields */
}
Fields§
§vtable: Option<Rc<RefCell<Vec<u32>>>>
§data: Option<Rc<RefCell<Vec<u8>>>>
Implementations§
Source§impl FlatBuffer
impl FlatBuffer
pub fn new() -> FlatBuffer
pub fn with_pivot(num: u8) -> FlatBuffer
pub fn with_primitive_type(data: &mut Vec<u8>) -> FlatBuffer
pub fn bytes(&mut self) -> (Option<Vec<u8>>, usize)
Trait Implementations§
Source§impl Clone for FlatBuffer
impl Clone for FlatBuffer
Source§fn clone(&self) -> FlatBuffer
fn clone(&self) -> FlatBuffer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FlatBuffer
impl !RefUnwindSafe for FlatBuffer
impl !Send for FlatBuffer
impl !Sync for FlatBuffer
impl Unpin for FlatBuffer
impl !UnwindSafe for FlatBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more