#[repr(C)]pub struct tm_lz4_api {
pub compress: Option<unsafe extern "C" fn(src: *const c_char, src_size: u32, dst: *mut c_char, dst_capacity: u32) -> u32>,
pub decompress: Option<unsafe extern "C" fn(src: *const c_char, src_size: u32, dst: *mut c_char, dst_capacity: u32) -> u32>,
pub compress_bound: Option<unsafe extern "C" fn(src_size: u32) -> u32>,
}Fields§
§compress: Option<unsafe extern "C" fn(src: *const c_char, src_size: u32, dst: *mut c_char, dst_capacity: u32) -> u32>§decompress: Option<unsafe extern "C" fn(src: *const c_char, src_size: u32, dst: *mut c_char, dst_capacity: u32) -> u32>§compress_bound: Option<unsafe extern "C" fn(src_size: u32) -> u32>Trait Implementations§
Source§impl Clone for tm_lz4_api
impl Clone for tm_lz4_api
Source§fn clone(&self) -> tm_lz4_api
fn clone(&self) -> tm_lz4_api
Returns a duplicate 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 Copy for tm_lz4_api
Auto Trait Implementations§
impl Freeze for tm_lz4_api
impl RefUnwindSafe for tm_lz4_api
impl Send for tm_lz4_api
impl Sync for tm_lz4_api
impl Unpin for tm_lz4_api
impl UnsafeUnpin for tm_lz4_api
impl UnwindSafe for tm_lz4_api
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