pub struct QueryRow { /* private fields */ }Expand description
One owned handle into a query’s immutable flat value buffer.
Implementations§
Source§impl QueryRow
impl QueryRow
pub fn schema(&self) -> &QuerySchema
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn value(&self, column: usize) -> Option<&Value>
pub fn get(&self, column: &str) -> Option<&Value>
pub fn contains_key(&self, column: &str) -> bool
pub fn iter(&self) -> impl ExactSizeIterator<Item = (&str, &Value)>
pub fn keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn values(&self) -> impl ExactSizeIterator<Item = &Value>
pub fn as_ref(&self) -> QueryRowRef<'_>
pub fn to_owned_row(&self) -> Row
Trait Implementations§
impl Eq for QueryRow
Auto Trait Implementations§
impl Freeze for QueryRow
impl RefUnwindSafe for QueryRow
impl Send for QueryRow
impl Sync for QueryRow
impl Unpin for QueryRow
impl UnsafeUnpin for QueryRow
impl UnwindSafe for QueryRow
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