Struct miniz_oxide::StreamResult
source · [−]pub struct StreamResult {
pub bytes_consumed: usize,
pub bytes_written: usize,
pub status: MZResult,
}
Expand description
A structure containing 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.
Implementations
sourceimpl StreamResult
impl StreamResult
pub const fn error(error: MZError) -> StreamResult
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.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
Converts to this type from the input type.
sourceimpl From<StreamResult> for MZResult
impl From<StreamResult> for MZResult
sourcefn from(res: StreamResult) -> Self
fn from(res: StreamResult) -> Self
Converts to this type from the input type.
sourceimpl Hash for StreamResult
impl Hash for StreamResult
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl PartialEq<StreamResult> for StreamResult
impl PartialEq<StreamResult> for StreamResult
sourcefn eq(&self, other: &StreamResult) -> bool
fn eq(&self, other: &StreamResult) -> bool
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more