pub enum Row<'a> {
Ptr(RowRef<'a>),
Ref(&'a ProductValue),
}Variants§
Ptr(RowRef<'a>)
Ref(&'a ProductValue)
Implementations§
Source§impl Row<'_>
impl Row<'_>
pub fn to_product_value(&self) -> ProductValue
Trait Implementations§
Source§impl ProjectField for Row<'_>
impl ProjectField for Row<'_>
fn project(&self, field: &TupleField) -> AlgebraicValue
Source§impl ToBsatn for Row<'_>
impl ToBsatn for Row<'_>
Source§fn static_bsatn_size(&self) -> Option<u16>
fn static_bsatn_size(&self) -> Option<u16>
Returns the static size of the type of this object. Read more
Source§fn to_bsatn_extend(&self, buf: &mut Vec<u8>) -> Result<(), EncodeError>
fn to_bsatn_extend(&self, buf: &mut Vec<u8>) -> Result<(), EncodeError>
BSATN-encode the row referred to by
self into buf,
pushing self’s bytes onto the end of buf, similar to Vec::extend.Source§fn to_bsatn_vec(&self) -> Result<Vec<u8>, EncodeError>
fn to_bsatn_vec(&self) -> Result<Vec<u8>, EncodeError>
BSATN-encode the row referred to by
self into a freshly-allocated Vec<u8>.impl Eq for Row<'_>
Auto Trait Implementations§
impl<'a> Freeze for Row<'a>
impl<'a> !RefUnwindSafe for Row<'a>
impl<'a> Send for Row<'a>
impl<'a> Sync for Row<'a>
impl<'a> Unpin for Row<'a>
impl<'a> !UnwindSafe for Row<'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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> Satn for T
impl<T> Satn for T
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f.Source§fn fmt_psql(
&self,
f: &mut Formatter<'_>,
ty: &PsqlType<'_>,
) -> Result<(), Error>
fn fmt_psql( &self, f: &mut Formatter<'_>, ty: &PsqlType<'_>, ) -> Result<(), Error>
Formats the value using the postgres SATN(PsqlFormatter { f }, /* PsqlType */) formatter
f.Source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String.Source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String.