pub struct SourceCheckExpr { /* private fields */ }Expand description
Bounded canonical source expression.
Implementations§
Source§impl SourceCheckExpr
impl SourceCheckExpr
Sourcepub fn try_new(
instructions: Vec<SourceCheckInstruction>,
) -> Result<SourceCheckExpr, SchemaContractError>
pub fn try_new( instructions: Vec<SourceCheckInstruction>, ) -> Result<SourceCheckExpr, SchemaContractError>
Construct and validate one source expression.
§Errors
Returns a typed expression error for empty, oversized, malformed-stack, or invalid-literal input.
Sourcepub fn instructions(&self) -> &[SourceCheckInstruction]
pub fn instructions(&self) -> &[SourceCheckInstruction]
Borrow canonical postfix instructions.
Sourcepub fn dependencies(&self) -> BTreeSet<FieldSourceKey>
pub fn dependencies(&self) -> BTreeSet<FieldSourceKey>
Derive referenced field source keys from the expression.
Trait Implementations§
Source§impl Clone for SourceCheckExpr
impl Clone for SourceCheckExpr
Source§fn clone(&self) -> SourceCheckExpr
fn clone(&self) -> SourceCheckExpr
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 SourceCheckExpr
impl Debug for SourceCheckExpr
impl Eq for SourceCheckExpr
Source§impl PartialEq for SourceCheckExpr
impl PartialEq for SourceCheckExpr
impl StructuralPartialEq for SourceCheckExpr
Auto Trait Implementations§
impl Freeze for SourceCheckExpr
impl RefUnwindSafe for SourceCheckExpr
impl Send for SourceCheckExpr
impl Sync for SourceCheckExpr
impl Unpin for SourceCheckExpr
impl UnsafeUnpin for SourceCheckExpr
impl UnwindSafe for SourceCheckExpr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.