Struct flexbuffers::VectorBuilder [−][src]
pub struct VectorBuilder<'a> { /* fields omitted */ }
Expand description
Builds a Flexbuffer vector, returned by a Builder.
Side effect when dropped:
When this is dropped, or end_vector
is called, the vector is
commited to the buffer. If this vector is the root of the flexbuffer, then the
root is written and the flexbuffer is complete. The FlexBufferType of this vector
is determined by the pushed values when this is dropped. The most compact vector type is
automatically chosen.
Implementations
impl<'a> VectorBuilder<'a>
[src]
impl<'a> VectorBuilder<'a>
[src]pub fn start_vector(&mut self) -> VectorBuilder<'_>
[src]
pub fn start_vector(&mut self) -> VectorBuilder<'_>
[src]Starts a nested vector that will be pushed onto this vector when it is dropped.
pub fn start_map(&mut self) -> MapBuilder<'_>
[src]
pub fn start_map(&mut self) -> MapBuilder<'_>
[src]Starts a nested map that will be pushed onto this vector when it is dropped.
pub fn end_vector(self)
[src]
pub fn end_vector(self)
[src]end_vector
determines the type of the vector and writes it to the buffer.
This will happen automatically if the VectorBuilder is dropped.