pub struct BytesBufferer { /* private fields */ }Available on crate feature
polars-io only.Expand description
Utility for byte buffering logic. Accepts both owned [Buffer<u8>] and borrowed &[u8] incoming
bytes.
Implementations§
Source§impl BytesBufferer
impl BytesBufferer
pub fn new(config: &BytesBuffererConfig) -> BytesBufferer
pub fn stats(&self) -> BytesBuffererStats
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn push_owned(&mut self, bytes: &Buffer<u8>)
pub fn push_slice(&mut self, bytes: &[u8])
pub fn drain(&mut self) -> Drain<'_, Buffer<u8>>
Trait Implementations§
Source§impl IntoIterator for BytesBufferer
impl IntoIterator for BytesBufferer
Source§type Item = <Vec<Buffer<u8>> as IntoIterator>::Item
type Item = <Vec<Buffer<u8>> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <Vec<Buffer<u8>> as IntoIterator>::IntoIter
type IntoIter = <Vec<Buffer<u8>> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <BytesBufferer as IntoIterator>::IntoIter
fn into_iter(self) -> <BytesBufferer as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl Freeze for BytesBufferer
impl !RefUnwindSafe for BytesBufferer
impl Send for BytesBufferer
impl Sync for BytesBufferer
impl Unpin for BytesBufferer
impl UnsafeUnpin for BytesBufferer
impl !UnwindSafe for BytesBufferer
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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