pub struct VectorCursor {
pub mode: CursorMode,
pub num_metadata_cols: usize,
pub db: *const VTabConnection,
pub config: *const VectorTableConfig,
pub state: Arc<RefCell<IndexState>>,
}Fields§
§mode: CursorMode§num_metadata_cols: usize§db: *const VTabConnectionSafety: valid for the vtab lifetime — SQLite keeps the connection alive.
config: *const VectorTableConfigSafety: valid for the vtab lifetime — VectorTable owns the config.
state: Arc<RefCell<IndexState>>Trait Implementations§
Source§impl VTabCursor for VectorCursor
impl VTabCursor for VectorCursor
Source§fn filter(
&mut self,
index_num: i32,
_index_str: Option<&str>,
args: &mut [&mut ValueRef],
) -> Result<()>
fn filter( &mut self, index_num: i32, _index_str: Option<&str>, args: &mut [&mut ValueRef], ) -> Result<()>
Source§fn eof(&mut self) -> bool
fn eof(&mut self) -> bool
Check if the cursor currently points beyond the end of the valid results.
Source§fn column(&mut self, idx: usize, ctx: &ColumnContext) -> Result<()>
fn column(&mut self, idx: usize, ctx: &ColumnContext) -> Result<()>
Fetch the column numbered idx for the current row. The indexes correspond to the order the
columns were declared by VTab::connect. The output value must be assigned to the context
using ColumnContext::set_result. If no result is set, SQL NULL is returned. If this
method returns an Err value, the SQL statement will fail, even if a result had been set
before the failure.
impl Send for VectorCursor
impl Sync for VectorCursor
Auto Trait Implementations§
impl Freeze for VectorCursor
impl !RefUnwindSafe for VectorCursor
impl Unpin for VectorCursor
impl UnsafeUnpin for VectorCursor
impl !UnwindSafe for VectorCursor
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