pub trait Apply: Sized + Debug {
// Required methods
fn apply_args(
self,
args: &BTreeMap<String, ArgValue>,
) -> Result<Self, Error>;
fn apply_inputs(
self,
args: &BTreeMap<String, HashSet<Utxo>>,
) -> Result<Self, Error>;
fn apply_fees(self, fees: u64) -> Result<Self, Error>;
fn is_constant(&self) -> bool;
fn params(&self) -> BTreeMap<String, Type>;
fn queries(&self) -> BTreeMap<String, InputQuery>;
fn reduce(self) -> Result<Self, Error>;
}Required Methods§
fn apply_args(self, args: &BTreeMap<String, ArgValue>) -> Result<Self, Error>
fn apply_inputs( self, args: &BTreeMap<String, HashSet<Utxo>>, ) -> Result<Self, Error>
fn apply_fees(self, fees: u64) -> Result<Self, Error>
fn is_constant(&self) -> bool
fn params(&self) -> BTreeMap<String, Type>
fn queries(&self) -> BTreeMap<String, InputQuery>
fn reduce(self) -> Result<Self, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.