Struct spacetimedb_lib::relation::RelValueRef
source · pub struct RelValueRef<'a> {
pub data: &'a ProductValue,
}Expand description
A borrowed version of RelValue.
Fields§
§data: &'a ProductValueImplementations§
source§impl<'a> RelValueRef<'a>
impl<'a> RelValueRef<'a>
pub fn new(data: &'a ProductValue) -> Self
pub fn get(&self, col: &'a FieldExpr, header: &'a Header) -> &'a AlgebraicValue
pub fn project( &self, cols: &[FieldExpr], header: &'a Header ) -> Result<ProductValue, RelationError>
Trait Implementations§
source§impl<'a> Clone for RelValueRef<'a>
impl<'a> Clone for RelValueRef<'a>
source§fn clone(&self) -> RelValueRef<'a>
fn clone(&self) -> RelValueRef<'a>
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<'a> Debug for RelValueRef<'a>
impl<'a> Debug for RelValueRef<'a>
impl<'a> Copy for RelValueRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RelValueRef<'a>
impl<'a> Send for RelValueRef<'a>
impl<'a> Sync for RelValueRef<'a>
impl<'a> Unpin for RelValueRef<'a>
impl<'a> UnwindSafe for RelValueRef<'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