pub enum RowContext<'a> {
Data {
table_alias: &'a str,
row: Cow<'a, Row>,
next: Option<Arc<RowContext<'a>>>,
},
RefVecData {
columns: &'a [String],
values: &'a [Value],
},
RefMapData(&'a BTreeMap<String, Value>),
Bridge {
left: Arc<RowContext<'a>>,
right: Arc<RowContext<'a>>,
},
}Variants§
Implementations§
Source§impl<'a> RowContext<'a>
impl<'a> RowContext<'a>
pub fn new( table_alias: &'a str, row: Cow<'a, Row>, next: Option<Arc<RowContext<'a>>>, ) -> Self
pub fn concat(left: Arc<RowContext<'a>>, right: Arc<RowContext<'a>>) -> Self
pub fn get_value(&'a self, target: &str) -> Option<&'a Value>
pub fn get_alias_value( &'a self, target_table_alias: &str, target: &str, ) -> Option<&'a Value>
pub fn get_alias_entries(&self, alias: &str) -> Option<Vec<(&String, Value)>>
pub fn get_all_entries(&self) -> Vec<(&String, Value)>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RowContext<'a>
impl<'a> RefUnwindSafe for RowContext<'a>
impl<'a> Send for RowContext<'a>
impl<'a> Sync for RowContext<'a>
impl<'a> Unpin for RowContext<'a>
impl<'a> UnwindSafe for RowContext<'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> 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