pub struct Refinement {
pub binding: String,
pub predicate: CExpr,
}Fields§
§binding: StringThe bound variable name from Type{binding | predicate}.
predicate: CExprThe predicate, stored as a canonical-AST CExpr. The VM
interprets it directly via a small tree-walk evaluator —
no separate compile pass needed since predicates are pure
expressions over a single binding plus, eventually, the
surrounding call-site context (slice 3 supports the
binding only).
Trait Implementations§
Source§impl Clone for Refinement
impl Clone for Refinement
Source§fn clone(&self) -> Refinement
fn clone(&self) -> Refinement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Refinement
impl Debug for Refinement
Source§impl<'de> Deserialize<'de> for Refinement
impl<'de> Deserialize<'de> for Refinement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Refinement
impl PartialEq for Refinement
Source§fn eq(&self, other: &Refinement) -> bool
fn eq(&self, other: &Refinement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Refinement
impl Serialize for Refinement
impl StructuralPartialEq for Refinement
Auto Trait Implementations§
impl Freeze for Refinement
impl RefUnwindSafe for Refinement
impl Send for Refinement
impl Sync for Refinement
impl Unpin for Refinement
impl UnsafeUnpin for Refinement
impl UnwindSafe for Refinement
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