Struct libsqlite3_sys::Fts5ExtensionApi
source · #[repr(C)]pub struct Fts5ExtensionApi {Show 22 fields
pub iVersion: c_int,
pub xUserData: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut c_void>,
pub xColumnCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> c_int>,
pub xRowCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pnRow: *mut sqlite3_int64) -> c_int>,
pub xColumnTotalSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pnToken: *mut sqlite3_int64) -> c_int>,
pub xTokenize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pText: *const c_char, nText: c_int, pCtx: *mut c_void, xToken: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: c_int, arg6: c_int) -> c_int>) -> c_int>,
pub xPhraseCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> c_int>,
pub xPhraseSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int) -> c_int>,
pub xInstCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pnInst: *mut c_int) -> c_int>,
pub xInst: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iIdx: c_int, piPhrase: *mut c_int, piCol: *mut c_int, piOff: *mut c_int) -> c_int>,
pub xRowid: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>,
pub xColumnText: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pz: *mut *const c_char, pn: *mut c_int) -> c_int>,
pub xColumnSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pnToken: *mut c_int) -> c_int>,
pub xQueryPhrase: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, pUserData: *mut c_void, arg2: Option<unsafe extern "C" fn(arg1: *const Fts5ExtensionApi, arg2: *mut Fts5Context, arg3: *mut c_void) -> c_int>) -> c_int>,
pub xSetAuxdata: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pAux: *mut c_void, xDelete: Option<unsafe extern "C" fn(arg1: *mut c_void)>) -> c_int>,
pub xGetAuxdata: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, bClear: c_int) -> *mut c_void>,
pub xPhraseFirst: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, arg2: *mut Fts5PhraseIter, arg3: *mut c_int, arg4: *mut c_int) -> c_int>,
pub xPhraseNext: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, arg2: *mut Fts5PhraseIter, piCol: *mut c_int, piOff: *mut c_int)>,
pub xPhraseFirstColumn: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, arg2: *mut Fts5PhraseIter, arg3: *mut c_int) -> c_int>,
pub xPhraseNextColumn: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, arg2: *mut Fts5PhraseIter, piCol: *mut c_int)>,
pub xQueryToken: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, iToken: c_int, ppToken: *mut *const c_char, pnToken: *mut c_int) -> c_int>,
pub xInstToken: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iIdx: c_int, iToken: c_int, arg2: *mut *const c_char, arg3: *mut c_int) -> c_int>,
}
Fields§
§iVersion: c_int
§xUserData: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut c_void>
§xColumnCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> c_int>
§xRowCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pnRow: *mut sqlite3_int64) -> c_int>
§xColumnTotalSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pnToken: *mut sqlite3_int64) -> c_int>
§xTokenize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pText: *const c_char, nText: c_int, pCtx: *mut c_void, xToken: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_int, arg3: *const c_char, arg4: c_int, arg5: c_int, arg6: c_int) -> c_int>) -> c_int>
§xPhraseCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> c_int>
§xPhraseSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int) -> c_int>
§xInstCount: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pnInst: *mut c_int) -> c_int>
§xInst: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iIdx: c_int, piPhrase: *mut c_int, piCol: *mut c_int, piOff: *mut c_int) -> c_int>
§xRowid: Option<unsafe extern "C" fn(arg1: *mut Fts5Context) -> sqlite3_int64>
§xColumnText: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pz: *mut *const c_char, pn: *mut c_int) -> c_int>
§xColumnSize: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iCol: c_int, pnToken: *mut c_int) -> c_int>
§xQueryPhrase: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, pUserData: *mut c_void, arg2: Option<unsafe extern "C" fn(arg1: *const Fts5ExtensionApi, arg2: *mut Fts5Context, arg3: *mut c_void) -> c_int>) -> c_int>
§xSetAuxdata: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, pAux: *mut c_void, xDelete: Option<unsafe extern "C" fn(arg1: *mut c_void)>) -> c_int>
§xGetAuxdata: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, bClear: c_int) -> *mut c_void>
§xPhraseFirst: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, arg2: *mut Fts5PhraseIter, arg3: *mut c_int, arg4: *mut c_int) -> c_int>
§xPhraseNext: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, arg2: *mut Fts5PhraseIter, piCol: *mut c_int, piOff: *mut c_int)>
§xPhraseFirstColumn: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, arg2: *mut Fts5PhraseIter, arg3: *mut c_int) -> c_int>
§xPhraseNextColumn: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, arg2: *mut Fts5PhraseIter, piCol: *mut c_int)>
§xQueryToken: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iPhrase: c_int, iToken: c_int, ppToken: *mut *const c_char, pnToken: *mut c_int) -> c_int>
§xInstToken: Option<unsafe extern "C" fn(arg1: *mut Fts5Context, iIdx: c_int, iToken: c_int, arg2: *mut *const c_char, arg3: *mut c_int) -> c_int>
Trait Implementations§
source§impl Clone for Fts5ExtensionApi
impl Clone for Fts5ExtensionApi
source§fn clone(&self) -> Fts5ExtensionApi
fn clone(&self) -> Fts5ExtensionApi
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 moresource§impl Debug for Fts5ExtensionApi
impl Debug for Fts5ExtensionApi
impl Copy for Fts5ExtensionApi
Auto Trait Implementations§
impl Freeze for Fts5ExtensionApi
impl RefUnwindSafe for Fts5ExtensionApi
impl Send for Fts5ExtensionApi
impl Sync for Fts5ExtensionApi
impl Unpin for Fts5ExtensionApi
impl UnwindSafe for Fts5ExtensionApi
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)