Struct spacetimedb_sats::relation::RelValue
source · pub struct RelValue {
pub id: Option<DataKey>,
pub data: ProductValue,
}
Expand description
RelValue represents a materialized row during query execution.
In particular it is the type generated/consumed by a Relation operator.
This is in contrast to a DataRef
which represents a row belonging to a table.
The difference being that a RelValue’s DataKey is optional since relational
operators can modify their input rows.
Fields§
§id: Option<DataKey>
§data: ProductValue
Implementations§
source§impl RelValue
impl RelValue
pub fn new(data: ProductValue, id: Option<DataKey>) -> Self
pub fn as_val_ref(&self) -> RelValueRef<'_>
pub fn extend(self, with: RelValue) -> RelValue
Trait Implementations§
source§impl Ord for RelValue
impl Ord for RelValue
source§impl PartialEq for RelValue
impl PartialEq for RelValue
source§impl PartialOrd for RelValue
impl PartialOrd for RelValue
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 RelValue
Auto Trait Implementations§
impl RefUnwindSafe for RelValue
impl Send for RelValue
impl Sync for RelValue
impl Unpin for RelValue
impl UnwindSafe for RelValue
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