#[repr(C)]pub struct z_stream {Show 14 fields
pub next_in: *const u8,
pub avail_in: u32,
pub total_in: u64,
pub next_out: *mut u8,
pub avail_out: u32,
pub total_out: u64,
pub msg: *mut i8,
pub state: *mut internal_state,
pub zalloc: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: u32) -> *mut c_void>,
pub zfree: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>,
pub opaque: *mut c_void,
pub data_type: i32,
pub adler: u64,
pub reserved: u64,
}
Fields§
§next_in: *const u8
§avail_in: u32
§total_in: u64
§next_out: *mut u8
§avail_out: u32
§total_out: u64
§msg: *mut i8
§state: *mut internal_state
§zalloc: Option<unsafe extern "C" fn(_: *mut c_void, _: u32, _: u32) -> *mut c_void>
§zfree: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut c_void)>
§opaque: *mut c_void
§data_type: i32
§adler: u64
§reserved: u64
Implementations§
Source§impl z_stream
impl z_stream
pub fn configure_default_rust_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
)