pub struct DataRow {
pub storage: Vec<Option<Vec<u8>>>,
pub values: Vec<Option<Range<usize>>>,
}Expand description
A row of data from the database.
Fields§
§storage: Vec<Option<Vec<u8>>>§values: Vec<Option<Range<usize>>>Ranges into the stored row data.
This uses u32 instead of usize to reduce the size of this type. Values cannot be larger
than i32 in postgres.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataRow
impl RefUnwindSafe for DataRow
impl Send for DataRow
impl Sync for DataRow
impl Unpin for DataRow
impl UnsafeUnpin for DataRow
impl UnwindSafe for DataRow
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> 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