Type Alias cookie_io_functions_t

Source
pub type cookie_io_functions_t = _IO_cookie_io_functions_t;

Aliased Type§

struct cookie_io_functions_t {
    pub read: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut i8, _: usize) -> i64>,
    pub write: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: usize) -> i64>,
    pub seek: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut i64, _: i32) -> i32>,
    pub close: Option<unsafe extern "C" fn(_: *mut c_void) -> i32>,
}

Fields§

§read: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut i8, _: usize) -> i64>§write: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: usize) -> i64>§seek: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut i64, _: i32) -> i32>§close: Option<unsafe extern "C" fn(_: *mut c_void) -> i32>

Trait Implementations

Source§

fn clone(&self) -> _IO_cookie_io_functions_t

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more