pub struct StructExpr {
pub constructor: usize,
pub fields: Vec<Expression>,
}Fields§
§constructor: usize§fields: Vec<Expression>Implementations§
Source§impl StructExpr
impl StructExpr
pub fn unit() -> StructExpr
Trait Implementations§
Source§impl Clone for StructExpr
impl Clone for StructExpr
Source§fn clone(&self) -> StructExpr
fn clone(&self) -> StructExpr
Returns a duplicate 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 Composite for StructExpr
impl Composite for StructExpr
fn components(&self) -> Vec<&Expression>
fn try_map_components<F>(self, f: F) -> Result<StructExpr, Error>
fn reduce_self(self) -> Result<Self, Error>
fn reduce_nested(self) -> Result<Self, Error>
Source§impl Debug for StructExpr
impl Debug for StructExpr
Source§impl<'de> Deserialize<'de> for StructExpr
impl<'de> Deserialize<'de> for StructExpr
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructExpr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Indexable for StructExpr
impl Indexable for StructExpr
fn index(&self, index: Expression) -> Option<Expression>
fn index_or_err(&self, index: Expression) -> Result<Expression, Error>
Source§impl Node for StructExpr
impl Node for StructExpr
Source§impl PartialEq for StructExpr
impl PartialEq for StructExpr
Source§impl Serialize for StructExpr
impl Serialize for StructExpr
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 Eq for StructExpr
impl StructuralPartialEq for StructExpr
Auto Trait Implementations§
impl Freeze for StructExpr
impl RefUnwindSafe for StructExpr
impl Send for StructExpr
impl Sync for StructExpr
impl Unpin for StructExpr
impl UnsafeUnpin for StructExpr
impl UnwindSafe for StructExpr
Blanket Implementations§
Source§impl<T> Apply for T
impl<T> Apply for T
fn apply_args(self, args: &BTreeMap<String, ArgValue>) -> Result<T, Error>
fn apply_inputs( self, args: &BTreeMap<String, HashSet<Utxo>>, ) -> Result<T, Error>
fn apply_fees(self, fees: u64) -> Result<T, Error>
fn is_constant(&self) -> bool
fn params(&self) -> BTreeMap<String, Type>
fn queries(&self) -> BTreeMap<String, InputQuery>
fn reduce(self) -> Result<T, Error>
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