Struct allegro_sys::file::ALLEGRO_FILE_INTERFACE
source · #[repr(C)]pub struct ALLEGRO_FILE_INTERFACE {Show 13 fields
pub fi_fopen: Option<unsafe extern "C" fn(path: *const c_char, mode: *const c_char) -> *mut c_void>,
pub fi_fclose: Option<unsafe extern "C" fn(handle: *mut ALLEGRO_FILE) -> c_bool>,
pub fi_fread: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, ptr: *mut c_void, size: c_ulong) -> c_ulong>,
pub fi_fwrite: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, ptr: *const c_void, size: c_ulong) -> c_ulong>,
pub fi_fflush: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_bool>,
pub fi_ftell: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> int64_t>,
pub fi_fseek: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, offset: int64_t, whence: c_int) -> c_bool>,
pub fi_feof: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_bool>,
pub fi_ferror: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_int>,
pub fi_ferrmsg: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> *const c_char>,
pub fi_fclearerr: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE)>,
pub fi_fungetc: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, c: c_int) -> c_int>,
pub fi_fsize: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> off_t>,
}
Fields
fi_fopen: Option<unsafe extern "C" fn(path: *const c_char, mode: *const c_char) -> *mut c_void>
fi_fclose: Option<unsafe extern "C" fn(handle: *mut ALLEGRO_FILE) -> c_bool>
fi_fread: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, ptr: *mut c_void, size: c_ulong) -> c_ulong>
fi_fwrite: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, ptr: *const c_void, size: c_ulong) -> c_ulong>
fi_fflush: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_bool>
fi_ftell: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> int64_t>
fi_fseek: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, offset: int64_t, whence: c_int) -> c_bool>
fi_feof: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_bool>
fi_ferror: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> c_int>
fi_ferrmsg: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> *const c_char>
fi_fclearerr: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE)>
fi_fungetc: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE, c: c_int) -> c_int>
fi_fsize: Option<unsafe extern "C" fn(f: *mut ALLEGRO_FILE) -> off_t>
Trait Implementations
sourceimpl Clone for ALLEGRO_FILE_INTERFACE
impl Clone for ALLEGRO_FILE_INTERFACE
sourcefn clone(&self) -> ALLEGRO_FILE_INTERFACE
fn clone(&self) -> ALLEGRO_FILE_INTERFACE
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ALLEGRO_FILE_INTERFACE
impl Debug for ALLEGRO_FILE_INTERFACE
impl Copy for ALLEGRO_FILE_INTERFACE
Auto Trait Implementations
impl RefUnwindSafe for ALLEGRO_FILE_INTERFACE
impl Send for ALLEGRO_FILE_INTERFACE
impl Sync for ALLEGRO_FILE_INTERFACE
impl Unpin for ALLEGRO_FILE_INTERFACE
impl UnwindSafe for ALLEGRO_FILE_INTERFACE
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more