#[repr(C)]pub struct PathApi {
pub extension: Option<unsafe extern "C" fn(path: StrT) -> StrT>,
pub extension_cstr: Option<unsafe extern "C" fn(path: *const c_char) -> *const c_char>,
pub strip_extension: Option<unsafe extern "C" fn(path: StrT) -> StrT>,
pub base: Option<unsafe extern "C" fn(path: StrT) -> StrT>,
pub base_cstr: Option<unsafe extern "C" fn(path: *const c_char) -> *const c_char>,
pub directory: Option<unsafe extern "C" fn(path: StrT) -> StrT>,
pub pop_last: Option<unsafe extern "C" fn(path: *mut StrT) -> StrT>,
pub pop_first: Option<unsafe extern "C" fn(path: *mut StrT) -> StrT>,
pub split_all: Option<unsafe extern "C" fn(path: StrT, ta: *mut TempAllocatorI) -> *mut StrT>,
pub join: Option<unsafe extern "C" fn(a: StrT, b: StrT, ta: *mut TempAllocatorI) -> StrT>,
}
Fields§
§extension: Option<unsafe extern "C" fn(path: StrT) -> StrT>
§extension_cstr: Option<unsafe extern "C" fn(path: *const c_char) -> *const c_char>
§strip_extension: Option<unsafe extern "C" fn(path: StrT) -> StrT>
§base: Option<unsafe extern "C" fn(path: StrT) -> StrT>
§base_cstr: Option<unsafe extern "C" fn(path: *const c_char) -> *const c_char>
§directory: Option<unsafe extern "C" fn(path: StrT) -> StrT>
§pop_last: Option<unsafe extern "C" fn(path: *mut StrT) -> StrT>
§pop_first: Option<unsafe extern "C" fn(path: *mut StrT) -> StrT>
§split_all: Option<unsafe extern "C" fn(path: StrT, ta: *mut TempAllocatorI) -> *mut StrT>
§join: Option<unsafe extern "C" fn(a: StrT, b: StrT, ta: *mut TempAllocatorI) -> StrT>
Implementations§
Source§impl PathApi
impl PathApi
pub unsafe fn extension(&self, path: StrT) -> StrT
pub unsafe fn extension_cstr(&self, path: *const c_char) -> *const c_char
pub unsafe fn strip_extension(&self, path: StrT) -> StrT
pub unsafe fn base(&self, path: StrT) -> StrT
pub unsafe fn base_cstr(&self, path: *const c_char) -> *const c_char
pub unsafe fn directory(&self, path: StrT) -> StrT
pub unsafe fn pop_last(&self, path: *mut StrT) -> StrT
pub unsafe fn pop_first(&self, path: *mut StrT) -> StrT
pub unsafe fn split_all(&self, path: StrT, ta: *mut TempAllocatorI) -> *mut StrT
pub unsafe fn join(&self, a: StrT, b: StrT, ta: *mut TempAllocatorI) -> StrT
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathApi
impl RefUnwindSafe for PathApi
impl Send for PathApi
impl Sync for PathApi
impl Unpin for PathApi
impl UnwindSafe for PathApi
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