pub struct Lift {
pub verb: String,
pub lattice: String,
pub rows: Vec<Row>,
pub projection: Option<Projection>,
pub table: Option<Box<Table>>,
}Fields§
§verb: String§lattice: String§rows: Vec<Row>§projection: Option<Projection>§table: Option<Box<Table>>Resolved from the clause, never included in the canonical signed body.
Implementations§
Source§impl Lift
impl Lift
pub fn arguments(&self) -> Vec<SExpr>
pub fn evaluate<'a>(&self, acts: impl IntoIterator<Item = &'a Act>) -> Value
pub fn validate(&self, table: &Table) -> Result<(), String>
Sourcepub fn contribution(
&self,
table: &Table,
fields: &BTreeMap<String, SExpr>,
) -> usize
pub fn contribution( &self, table: &Table, fields: &BTreeMap<String, SExpr>, ) -> usize
Every matching row contributes; simultaneous matches are joined.
pub fn project(&self, table: &Table, element: usize) -> Value
Trait Implementations§
impl Eq for Lift
impl StructuralPartialEq for Lift
Auto Trait Implementations§
impl Forget for Lift
impl Freeze for Liftwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Row>: Freeze,
PhantomData<(String, SExpr)>: Freeze,
*const Table is !null: Freeze,
PhantomData<Table>: Freeze,
impl Move for Lift
impl RefUnwindSafe for Lift
impl Send for Lift
impl Sync for Lift
impl Unpin for Lift
impl UnsafeUnpin for Liftwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Row>: UnsafeUnpin,
PhantomData<(String, SExpr)>: UnsafeUnpin,
*const Table is !null: UnsafeUnpin,
PhantomData<Table>: UnsafeUnpin,
impl UnwindSafe for Lift
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