#[repr(C)]pub struct tre_str_source {
pub get_next_char: Option<unsafe extern "C" fn(c: *mut tre_char_t, pos_add: *mut c_uint, context: *mut c_void) -> c_int>,
pub rewind: Option<unsafe extern "C" fn(pos: usize, context: *mut c_void)>,
pub compare: Option<unsafe extern "C" fn(pos1: usize, pos2: usize, len: usize, context: *mut c_void) -> c_int>,
pub context: *mut c_void,
}
Fields§
§get_next_char: Option<unsafe extern "C" fn(c: *mut tre_char_t, pos_add: *mut c_uint, context: *mut c_void) -> c_int>
§rewind: Option<unsafe extern "C" fn(pos: usize, context: *mut c_void)>
§compare: Option<unsafe extern "C" fn(pos1: usize, pos2: usize, len: usize, context: *mut c_void) -> c_int>
§context: *mut c_void
Trait Implementations§
Source§impl Clone for tre_str_source
impl Clone for tre_str_source
Source§fn clone(&self) -> tre_str_source
fn clone(&self) -> tre_str_source
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 tre_str_source
impl Debug for tre_str_source
Source§impl Default for tre_str_source
impl Default for tre_str_source
impl Copy for tre_str_source
Auto Trait Implementations§
impl Freeze for tre_str_source
impl RefUnwindSafe for tre_str_source
impl !Send for tre_str_source
impl !Sync for tre_str_source
impl Unpin for tre_str_source
impl UnwindSafe for tre_str_source
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