pub struct QueryRowRef<'a> { /* private fields */ }Expand description
A borrowed row view over a query’s immutable contiguous row buffer.
Implementations§
Source§impl<'a> QueryRowRef<'a>
impl<'a> QueryRowRef<'a>
pub fn schema(self) -> &'a QuerySchema
pub fn len(self) -> usize
pub fn is_empty(self) -> bool
pub fn value(self, column: usize) -> Option<&'a Value>
pub fn get(self, column: &str) -> Option<&'a Value>
pub fn contains_key(self, column: &str) -> bool
pub fn iter(self) -> impl ExactSizeIterator<Item = (&'a str, &'a Value)>
pub fn keys(self) -> impl ExactSizeIterator<Item = &'a str>
pub fn values(self) -> impl ExactSizeIterator<Item = &'a Value>
pub fn to_owned_row(self) -> Row
Trait Implementations§
Source§impl<'a> Clone for QueryRowRef<'a>
impl<'a> Clone for QueryRowRef<'a>
impl<'a> Copy for QueryRowRef<'a>
Source§impl<'a> Debug for QueryRowRef<'a>
impl<'a> Debug for QueryRowRef<'a>
Source§impl Index<&str> for QueryRowRef<'_>
impl Index<&str> for QueryRowRef<'_>
Auto Trait Implementations§
impl<'a> Freeze for QueryRowRef<'a>
impl<'a> RefUnwindSafe for QueryRowRef<'a>
impl<'a> Send for QueryRowRef<'a>
impl<'a> Sync for QueryRowRef<'a>
impl<'a> Unpin for QueryRowRef<'a>
impl<'a> UnsafeUnpin for QueryRowRef<'a>
impl<'a> UnwindSafe for QueryRowRef<'a>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more