pub struct ColumnIndex(/* private fields */);Expand description
A SQLite column index, used for reading values out of queried rows.
Implementations§
Source§impl ColumnIndex
impl ColumnIndex
Sourcepub const INITIAL: Self
pub const INITIAL: Self
The first numbered column index (0).
let first = ColumnIndex::INITIAL;
assert_eq!(usize::from(first), 0);pub const fn new(value: c_int) -> Self
Sourcepub const fn next(&self) -> Self
pub const fn next(&self) -> Self
Add 1 to this column index.
let first = ColumnIndex::INITIAL;
assert_eq!(usize::from(first), 0);
let second = first.next();
assert_eq!(usize::from(second), 1);Trait Implementations§
Source§impl Clone for ColumnIndex
impl Clone for ColumnIndex
Source§fn clone(&self) -> ColumnIndex
fn clone(&self) -> ColumnIndex
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 ColumnIndex
impl Debug for ColumnIndex
Source§impl From<ColumnIndex> for i32
impl From<ColumnIndex> for i32
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<ColumnIndex> for i64
impl From<ColumnIndex> for i64
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<ColumnIndex> for isize
impl From<ColumnIndex> for isize
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<ColumnIndex> for u32
impl From<ColumnIndex> for u32
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<ColumnIndex> for u64
impl From<ColumnIndex> for u64
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl From<ColumnIndex> for usize
impl From<ColumnIndex> for usize
Source§fn from(index: ColumnIndex) -> Self
fn from(index: ColumnIndex) -> Self
Converts to this type from the input type.
Source§impl Ord for ColumnIndex
impl Ord for ColumnIndex
Source§fn cmp(&self, other: &ColumnIndex) -> Ordering
fn cmp(&self, other: &ColumnIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColumnIndex
impl PartialEq for ColumnIndex
Source§impl PartialOrd for ColumnIndex
impl PartialOrd for ColumnIndex
Source§impl TryFrom<i32> for ColumnIndex
impl TryFrom<i32> for ColumnIndex
Source§impl TryFrom<i64> for ColumnIndex
impl TryFrom<i64> for ColumnIndex
Source§impl TryFrom<isize> for ColumnIndex
impl TryFrom<isize> for ColumnIndex
Source§impl TryFrom<u32> for ColumnIndex
impl TryFrom<u32> for ColumnIndex
Source§impl TryFrom<u64> for ColumnIndex
impl TryFrom<u64> for ColumnIndex
Source§impl TryFrom<usize> for ColumnIndex
impl TryFrom<usize> for ColumnIndex
impl Copy for ColumnIndex
impl Eq for ColumnIndex
impl StructuralPartialEq for ColumnIndex
Auto Trait Implementations§
impl Freeze for ColumnIndex
impl RefUnwindSafe for ColumnIndex
impl Send for ColumnIndex
impl Sync for ColumnIndex
impl Unpin for ColumnIndex
impl UnsafeUnpin for ColumnIndex
impl UnwindSafe for ColumnIndex
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