pub struct CommonBuffer { /* private fields */ }Implementations§
Source§impl CommonBuffer
impl CommonBuffer
Trait Implementations§
Source§impl BufferGetter for CommonBuffer
impl BufferGetter for CommonBuffer
Source§impl Default for CommonBuffer
impl Default for CommonBuffer
Source§impl DynamicSizeBuffer for CommonBuffer
impl DynamicSizeBuffer for CommonBuffer
fn need_resize(&self) -> bool
Source§fn dyn_resize(&mut self)
fn dyn_resize(&mut self)
Dynamic capacity adjustment based on
need_sizeSource§fn update_need_size(&mut self, n: usize)
fn update_need_size(&mut self, n: usize)
If the
buffer is filled, it is expanded; if the buffer is not filled and the filled
content is less than INIT_BUF_SIZE bytes and the need_size is greater than
INIT_BUF_SIZE, it is shrunk. Read moreSource§impl FixedSizeBuffer for CommonBuffer
impl FixedSizeBuffer for CommonBuffer
Source§fn fixed_resize(&mut self, size: usize)
fn fixed_resize(&mut self, size: usize)
The length of the buffer must reach
size after resize, as opposed to
DynamicSizeBuffer’s internal state-based resize.Auto Trait Implementations§
impl Freeze for CommonBuffer
impl RefUnwindSafe for CommonBuffer
impl Send for CommonBuffer
impl Sync for CommonBuffer
impl Unpin for CommonBuffer
impl UnsafeUnpin for CommonBuffer
impl UnwindSafe for CommonBuffer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more