Struct async_compression::util::PartialBuffer
source · pub struct PartialBuffer<B: AsRef<[u8]>> {
buffer: B,
index: usize,
}
Fields§
§buffer: B
§index: usize
Implementations§
source§impl<B: AsRef<[u8]>> PartialBuffer<B>
impl<B: AsRef<[u8]>> PartialBuffer<B>
source§impl<B: AsRef<[u8]> + AsMut<[u8]>> PartialBuffer<B>
impl<B: AsRef<[u8]> + AsMut<[u8]>> PartialBuffer<B>
pub(crate) fn unwritten_mut(&mut self) -> &mut [u8] ⓘ
pub(crate) fn copy_unwritten_from<C: AsRef<[u8]>>( &mut self, other: &mut PartialBuffer<C>, )
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for PartialBuffer<B>where
B: Freeze,
impl<B> RefUnwindSafe for PartialBuffer<B>where
B: RefUnwindSafe,
impl<B> Send for PartialBuffer<B>where
B: Send,
impl<B> Sync for PartialBuffer<B>where
B: Sync,
impl<B> Unpin for PartialBuffer<B>where
B: Unpin,
impl<B> UnwindSafe for PartialBuffer<B>where
B: UnwindSafe,
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