#[repr(C)]pub struct tm_os_file_system_api {Show 16 fields
pub stat: Option<unsafe extern "C" fn(path: *const c_char) -> tm_file_stat_t>,
pub directory_entries: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut tm_temp_allocator_i) -> *mut tm_strings_t>,
pub make_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub remove_file: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub remove_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub rename: Option<unsafe extern "C" fn(old_name: *const c_char, new_name: *const c_char) -> bool>,
pub copy_file: Option<unsafe extern "C" fn(from: *const c_char, to: *const c_char) -> bool>,
pub getcwd: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>,
pub chdir: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub is_absolute: Option<unsafe extern "C" fn(path: *const c_char) -> bool>,
pub absolute: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut tm_temp_allocator_i) -> *const c_char>,
pub temp_directory: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>,
pub create_watcher: Option<unsafe extern "C" fn(dir_path: *const c_char) -> tm_file_system_watcher_o>,
pub any_changes: Option<unsafe extern "C" fn(watcher: tm_file_system_watcher_o) -> bool>,
pub destroy_watcher: Option<unsafe extern "C" fn(watcher: tm_file_system_watcher_o)>,
pub app_folder: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>,
}Fields§
§stat: Option<unsafe extern "C" fn(path: *const c_char) -> tm_file_stat_t>§directory_entries: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut tm_temp_allocator_i) -> *mut tm_strings_t>§make_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>§remove_file: Option<unsafe extern "C" fn(path: *const c_char) -> bool>§remove_directory: Option<unsafe extern "C" fn(path: *const c_char) -> bool>§rename: Option<unsafe extern "C" fn(old_name: *const c_char, new_name: *const c_char) -> bool>§copy_file: Option<unsafe extern "C" fn(from: *const c_char, to: *const c_char) -> bool>§getcwd: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>§chdir: Option<unsafe extern "C" fn(path: *const c_char) -> bool>§is_absolute: Option<unsafe extern "C" fn(path: *const c_char) -> bool>§absolute: Option<unsafe extern "C" fn(path: *const c_char, ta: *mut tm_temp_allocator_i) -> *const c_char>§temp_directory: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>§create_watcher: Option<unsafe extern "C" fn(dir_path: *const c_char) -> tm_file_system_watcher_o>§any_changes: Option<unsafe extern "C" fn(watcher: tm_file_system_watcher_o) -> bool>§destroy_watcher: Option<unsafe extern "C" fn(watcher: tm_file_system_watcher_o)>§app_folder: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i) -> *const c_char>Trait Implementations§
Source§impl Clone for tm_os_file_system_api
impl Clone for tm_os_file_system_api
Source§fn clone(&self) -> tm_os_file_system_api
fn clone(&self) -> tm_os_file_system_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_os_file_system_api
Auto Trait Implementations§
impl Freeze for tm_os_file_system_api
impl RefUnwindSafe for tm_os_file_system_api
impl Send for tm_os_file_system_api
impl Sync for tm_os_file_system_api
impl Unpin for tm_os_file_system_api
impl UnwindSafe for tm_os_file_system_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