libsqlite3_sys

Struct 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

Source§

fn clone(&self) -> Fts5ExtensionApi

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Fts5ExtensionApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Fts5ExtensionApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.