pub struct FlatBufferBuilderLocalPool<'a> { /* private fields */ }Expand description
Local FlatBufferBuilder pool.
§Examples
use flatbuffers_pool::FlatBufferBuilderPool;
// Get the builder from the global pool.
let pool = FlatBufferBuilderPool::new().build();
let mut b = pool.get();
let name = b.create_string("something fun");
b.finish(name, None);Implementations§
Source§impl<'a> FlatBufferBuilderLocalPool<'a>
impl<'a> FlatBufferBuilderLocalPool<'a>
Sourcepub fn get(&self) -> LocalBuilder<'a>
pub fn get(&self) -> LocalBuilder<'a>
Get the FlatBufferBuilder from the local pool.
§Examples
use flatbuffers_pool::FlatBufferBuilderPool;
// Get the builder from the local pool.
let pool = FlatBufferBuilderPool::new().build();
let mut b = pool.get();
let name = b.create_string("something fun");
b.finish(name, None);Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FlatBufferBuilderLocalPool<'a>
impl<'a> !RefUnwindSafe for FlatBufferBuilderLocalPool<'a>
impl<'a> Send for FlatBufferBuilderLocalPool<'a>
impl<'a> Sync for FlatBufferBuilderLocalPool<'a>
impl<'a> Unpin for FlatBufferBuilderLocalPool<'a>
impl<'a> !UnwindSafe for FlatBufferBuilderLocalPool<'a>
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