#[repr(C)]pub struct mlx_io_vtable_ {
pub is_open: Option<unsafe extern "C" fn(arg1: *mut c_void) -> bool>,
pub good: Option<unsafe extern "C" fn(arg1: *mut c_void) -> bool>,
pub tell: Option<unsafe extern "C" fn(arg1: *mut c_void) -> usize>,
pub seek: Option<unsafe extern "C" fn(arg1: *mut c_void, off: i64, whence: c_int)>,
pub read: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *mut c_char, n: usize)>,
pub read_at_offset: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *mut c_char, n: usize, off: usize)>,
pub write: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *const c_char, n: usize)>,
pub label: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *const c_char>,
pub free: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
}Fields§
§is_open: Option<unsafe extern "C" fn(arg1: *mut c_void) -> bool>§good: Option<unsafe extern "C" fn(arg1: *mut c_void) -> bool>§tell: Option<unsafe extern "C" fn(arg1: *mut c_void) -> usize>§seek: Option<unsafe extern "C" fn(arg1: *mut c_void, off: i64, whence: c_int)>§read: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *mut c_char, n: usize)>§read_at_offset: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *mut c_char, n: usize, off: usize)>§write: Option<unsafe extern "C" fn(arg1: *mut c_void, data: *const c_char, n: usize)>§label: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *const c_char>§free: Option<unsafe extern "C" fn(arg1: *mut c_void)>Trait Implementations§
Source§impl Clone for mlx_io_vtable_
impl Clone for mlx_io_vtable_
Source§fn clone(&self) -> mlx_io_vtable_
fn clone(&self) -> mlx_io_vtable_
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 moreSource§impl Debug for mlx_io_vtable_
impl Debug for mlx_io_vtable_
impl Copy for mlx_io_vtable_
Auto Trait Implementations§
impl Freeze for mlx_io_vtable_
impl RefUnwindSafe for mlx_io_vtable_
impl Send for mlx_io_vtable_
impl Sync for mlx_io_vtable_
impl Unpin for mlx_io_vtable_
impl UnsafeUnpin for mlx_io_vtable_
impl UnwindSafe for mlx_io_vtable_
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