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 CandidType for SourceCheckExpr
impl CandidType for SourceCheckExpr
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
Source§impl<'de> Deserialize<'de> for SourceCheckExpr
impl<'de> Deserialize<'de> for SourceCheckExpr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceCheckExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceCheckExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceCheckExpr
Source§impl PartialEq for SourceCheckExpr
impl PartialEq for SourceCheckExpr
Source§impl Serialize for SourceCheckExpr
impl Serialize for SourceCheckExpr
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.