Enum spacetimedb_vm::expr::SourceExpr
source · pub enum SourceExpr {
MemTable(MemTable),
DbTable(DbTable),
}Variants§
Implementations§
source§impl SourceExpr
impl SourceExpr
pub fn get_db_table(&self) -> Option<&DbTable>
pub fn table_name(&self) -> &str
pub fn table_type(&self) -> StTableType
pub fn table_access(&self) -> StAccess
sourcepub fn get_column_by_field<'a>(
&'a self,
field: &'a FieldName
) -> Option<&Column>
pub fn get_column_by_field<'a>( &'a self, field: &'a FieldName ) -> Option<&Column>
Check if the name of the FieldName exist on this SourceExpr
Warning: It ignores the table_name
Trait Implementations§
source§impl Clone for SourceExpr
impl Clone for SourceExpr
source§fn clone(&self) -> SourceExpr
fn clone(&self) -> SourceExpr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SourceExpr
impl Debug for SourceExpr
source§impl Display for SourceExpr
impl Display for SourceExpr
source§impl From<&SourceExpr> for DbTable
impl From<&SourceExpr> for DbTable
source§fn from(value: &SourceExpr) -> Self
fn from(value: &SourceExpr) -> Self
Converts to this type from the input type.
source§impl From<DbTable> for SourceExpr
impl From<DbTable> for SourceExpr
source§fn from(original: DbTable) -> SourceExpr
fn from(original: DbTable) -> SourceExpr
Converts to this type from the input type.
source§impl From<MemTable> for SourceExpr
impl From<MemTable> for SourceExpr
source§fn from(original: MemTable) -> SourceExpr
fn from(original: MemTable) -> SourceExpr
Converts to this type from the input type.
source§impl From<SourceExpr> for Table
impl From<SourceExpr> for Table
source§fn from(value: SourceExpr) -> Self
fn from(value: SourceExpr) -> Self
Converts to this type from the input type.
source§impl From<Table> for SourceExpr
impl From<Table> for SourceExpr
source§impl Ord for SourceExpr
impl Ord for SourceExpr
source§fn cmp(&self, other: &SourceExpr) -> Ordering
fn cmp(&self, other: &SourceExpr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SourceExpr
impl PartialEq for SourceExpr
source§fn eq(&self, other: &SourceExpr) -> bool
fn eq(&self, other: &SourceExpr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SourceExpr
impl PartialOrd for SourceExpr
source§fn partial_cmp(&self, other: &SourceExpr) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceExpr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Relation for SourceExpr
impl Relation for SourceExpr
impl Eq for SourceExpr
impl StructuralEq for SourceExpr
impl StructuralPartialEq for SourceExpr
Auto Trait Implementations§
impl RefUnwindSafe for SourceExpr
impl Send for SourceExpr
impl Sync for SourceExpr
impl Unpin for SourceExpr
impl UnwindSafe for SourceExpr
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