Struct spacetimedb_lib::relation::MemTable
source · pub struct MemTable {
pub head: Header,
pub data: Vec<RelValue>,
pub table_access: StAccess,
}Expand description
An in-memory table
Fields§
§head: Header§data: Vec<RelValue>§table_access: StAccessImplementations§
source§impl MemTable
impl MemTable
pub fn new(head: &Header, table_access: StAccess, data: &[RelValue]) -> Self
pub fn from_value(of: AlgebraicValue) -> Self
pub fn from_iter( head: &Header, data: impl Iterator<Item = ProductValue> ) -> Self
pub fn as_without_table_name(&self) -> MemTableWithoutTableName<'_>
pub fn get_field(&self, pos: usize) -> Option<&FieldName>
pub fn get_field_named(&self, name: &str) -> Option<&FieldName>
Trait Implementations§
source§impl Ord for MemTable
impl Ord for MemTable
source§impl PartialEq for MemTable
impl PartialEq for MemTable
source§impl PartialOrd for MemTable
impl PartialOrd for MemTable
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 moreimpl Eq for MemTable
impl StructuralEq for MemTable
impl StructuralPartialEq for MemTable
Auto Trait Implementations§
impl RefUnwindSafe for MemTable
impl Send for MemTable
impl Sync for MemTable
impl Unpin for MemTable
impl UnwindSafe for MemTable
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