pub struct QueryRows { /* private fields */ }Expand description
Schema-bearing result rows backed by immutable contiguous row buffers.
Implementations§
Source§impl QueryRows
impl QueryRows
pub fn empty() -> Self
pub fn schema(&self) -> &QuerySchema
pub fn value_rows(&self) -> QueryValueRows<'_> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn value(&self, row: usize, column: usize) -> Option<ValueRef<'_>>
pub fn get(&self, row: usize, column: &str) -> Option<ValueRef<'_>>
pub fn into_rows(self) -> Vec<Row> ⓘ
pub fn row(&self, row: usize) -> Option<QueryRowRef<'_>>
pub fn first(&self) -> Option<QueryRowRef<'_>>
pub fn last(&self) -> Option<QueryRowRef<'_>>
pub fn iter(&self) -> QueryRowsIter<'_> ⓘ
pub fn retain(&mut self, keep: impl FnMut(QueryRowRef<'_>) -> bool)
Sourcepub fn as_slice(&self) -> &[QueryRow]
pub fn as_slice(&self) -> &[QueryRow]
Returns stable owned row handles for APIs that require slice pattern matching or indexing. No map or value is copied.
pub fn payload_bytes(&self) -> usize
Trait Implementations§
impl Eq for QueryRows
Source§impl<'a> IntoIterator for &'a QueryRows
impl<'a> IntoIterator for &'a QueryRows
Source§impl IntoIterator for QueryRows
impl IntoIterator for QueryRows
Auto Trait Implementations§
impl !Freeze for QueryRows
impl RefUnwindSafe for QueryRows
impl Send for QueryRows
impl Sync for QueryRows
impl Unpin for QueryRows
impl UnsafeUnpin for QueryRows
impl UnwindSafe for QueryRows
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