#[repr(C)]pub struct StringRepositoryI {
pub inst: *mut StringRepositoryO,
pub add: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: *const c_char) -> StrhashT>,
pub add_str: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: StrT) -> StrhashT>,
pub retain: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT)>,
pub remove: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT)>,
pub lookup: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT) -> *const c_char>,
pub intern: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: *const c_char) -> *const c_char>,
pub intern_str: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: StrT) -> StrT>,
}
Fields§
§inst: *mut StringRepositoryO
§add: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: *const c_char) -> StrhashT>
§add_str: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: StrT) -> StrhashT>
§retain: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT)>
§remove: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT)>
§lookup: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, hash: StrhashT) -> *const c_char>
§intern: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: *const c_char) -> *const c_char>
§intern_str: Option<unsafe extern "C" fn(inst: *mut StringRepositoryO, s: StrT) -> StrT>
Trait Implementations§
Source§impl Clone for StringRepositoryI
impl Clone for StringRepositoryI
Source§fn clone(&self) -> StringRepositoryI
fn clone(&self) -> StringRepositoryI
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 Default for StringRepositoryI
impl Default for StringRepositoryI
impl Copy for StringRepositoryI
Auto Trait Implementations§
impl Freeze for StringRepositoryI
impl RefUnwindSafe for StringRepositoryI
impl !Send for StringRepositoryI
impl !Sync for StringRepositoryI
impl Unpin for StringRepositoryI
impl UnwindSafe for StringRepositoryI
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