#[repr(C)]pub struct BNNavigationHandler {
pub context: *mut c_void,
pub getCurrentView: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> *mut c_char>,
pub getCurrentOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>,
pub navigate: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *const c_char, offset: u64) -> bool>,
}
Fields§
§context: *mut c_void
§getCurrentView: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> *mut c_char>
§getCurrentOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>
Trait Implementations§
source§fn clone(&self) -> BNNavigationHandler
fn clone(&self) -> BNNavigationHandler
Returns a copy 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 moreAuto Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)