Struct miniz_oxide::inflate::output_buffer::InputWrapper
source · pub struct InputWrapper<'a> {
slice: &'a [u8],
}
Expand description
A wrapper for the output slice used when decompressing.
Using this rather than Cursor
lets us implement the writing methods directly on
the buffer and lets us use a usize rather than u64 for the position which helps with
performance on 32-bit systems.
Fields§
§slice: &'a [u8]
Implementations§
source§impl<'a> InputWrapper<'a>
impl<'a> InputWrapper<'a>
Trait Implementations§
source§impl<'a> Clone for InputWrapper<'a>
impl<'a> Clone for InputWrapper<'a>
source§fn clone(&self) -> InputWrapper<'a>
fn clone(&self) -> InputWrapper<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for InputWrapper<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputWrapper<'a>
impl<'a> RefUnwindSafe for InputWrapper<'a>
impl<'a> Send for InputWrapper<'a>
impl<'a> Sync for InputWrapper<'a>
impl<'a> Unpin for InputWrapper<'a>
impl<'a> UnwindSafe for InputWrapper<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)