pub struct BufferBuilder { /* private fields */ }
Expand description
This type must not impl Copy! Only move semantics is allowed. BufferBuilder owns memory (allocates / deallocates it)
Implementations§
Source§impl BufferBuilder
impl BufferBuilder
pub fn new(initial_length: isize) -> Self
pub fn buffer(&self) -> *mut u8
pub fn limit(&self) -> Index
pub fn set_limit(&mut self, limit: Index) -> Result<(), AeronError>
pub fn reset(&mut self) -> &mut BufferBuilder
pub fn append( &mut self, buffer: &AtomicBuffer, offset: Index, length: Index, _header: &Header, ) -> Result<&BufferBuilder, AeronError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferBuilder
impl RefUnwindSafe for BufferBuilder
impl !Send for BufferBuilder
impl !Sync for BufferBuilder
impl Unpin for BufferBuilder
impl UnwindSafe for BufferBuilder
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