pub struct SymbolBuffer { /* private fields */ }Expand description
A fixed-size symbol buffer owned by the pool.
Implementations§
Source§impl SymbolBuffer
impl SymbolBuffer
Sourcepub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns a mutable view of the buffer.
Sourcepub fn into_boxed_slice(self) -> Box<[u8]>
pub fn into_boxed_slice(self) -> Box<[u8]>
Consumes the buffer and returns the boxed slice.
The buffer’s Drop zeroing is bypassed for the extracted data — the
caller takes ownership and is responsible for clearing it if needed.
Trait Implementations§
Source§impl Debug for SymbolBuffer
impl Debug for SymbolBuffer
Source§impl Drop for SymbolBuffer
impl Drop for SymbolBuffer
Auto Trait Implementations§
impl Freeze for SymbolBuffer
impl RefUnwindSafe for SymbolBuffer
impl Send for SymbolBuffer
impl Sync for SymbolBuffer
impl Unpin for SymbolBuffer
impl UnsafeUnpin for SymbolBuffer
impl UnwindSafe for SymbolBuffer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).