Struct miniz_oxide::StreamResult
source · [−]pub struct StreamResult {
pub bytes_consumed: usize,
pub bytes_written: usize,
pub status: MZResult,
}
Expand description
A structure containg the result of a call to the inflate or deflate streaming functions.
Fields
bytes_consumed: usize
The number of bytes consumed from the input slice.
bytes_written: usize
The number of bytes written to the output slice.
status: MZResult
The return status of the call.
Trait Implementations
sourceimpl Clone for StreamResult
impl Clone for StreamResult
sourcefn clone(&self) -> StreamResult
fn clone(&self) -> StreamResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StreamResult
impl Debug for StreamResult
sourceimpl From<&'_ StreamResult> for MZResult
impl From<&'_ StreamResult> for MZResult
sourcefn from(res: &StreamResult) -> Self
fn from(res: &StreamResult) -> Self
Performs the conversion.
sourceimpl From<StreamResult> for MZResult
impl From<StreamResult> for MZResult
sourcefn from(res: StreamResult) -> Self
fn from(res: StreamResult) -> Self
Performs the conversion.
sourceimpl Hash for StreamResult
impl Hash for StreamResult
sourceimpl PartialEq<StreamResult> for StreamResult
impl PartialEq<StreamResult> for StreamResult
sourcefn eq(&self, other: &StreamResult) -> bool
fn eq(&self, other: &StreamResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StreamResult) -> bool
fn ne(&self, other: &StreamResult) -> bool
This method tests for !=
.
impl Copy for StreamResult
impl Eq for StreamResult
impl StructuralEq for StreamResult
impl StructuralPartialEq for StreamResult
Auto Trait Implementations
impl RefUnwindSafe for StreamResult
impl Send for StreamResult
impl Sync for StreamResult
impl Unpin for StreamResult
impl UnwindSafe for StreamResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more