#[repr(C)]pub struct z_stream {Show 14 fields
pub next_in: *const Bytef,
pub avail_in: uInt,
pub total_in: c_ulong,
pub next_out: *mut Bytef,
pub avail_out: uInt,
pub total_out: c_ulong,
pub msg: *mut c_char,
pub state: *mut internal_state,
pub zalloc: Option<alloc_func>,
pub zfree: Option<free_func>,
pub opaque: voidpf,
pub data_type: c_int,
pub adler: c_ulong,
pub reserved: uLong,
}
Fields§
§next_in: *const Bytef
§avail_in: uInt
§total_in: c_ulong
§next_out: *mut Bytef
§avail_out: uInt
§total_out: c_ulong
§msg: *mut c_char
§state: *mut internal_state
§zalloc: Option<alloc_func>
§zfree: Option<free_func>
§opaque: voidpf
§data_type: c_int
§adler: c_ulong
§reserved: uLong
Implementations§
Source§impl z_stream
impl z_stream
pub fn configure_default_rust_allocator(&mut self)
pub fn configure_default_c_allocator(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for z_stream
impl RefUnwindSafe for z_stream
impl !Send for z_stream
impl !Sync for z_stream
impl Unpin for z_stream
impl UnwindSafe for z_stream
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
)