pub enum EmbeddedCalc {
NonFungible(Vec<StrictVal>),
Fungible(StrictVal),
}Variants§
Trait Implementations§
Source§impl Clone for EmbeddedCalc
impl Clone for EmbeddedCalc
Source§fn clone(&self) -> EmbeddedCalc
fn clone(&self) -> EmbeddedCalc
Returns a copy 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 Debug for EmbeddedCalc
impl Debug for EmbeddedCalc
Source§impl PartialEq for EmbeddedCalc
impl PartialEq for EmbeddedCalc
Source§impl StateCalc for EmbeddedCalc
impl StateCalc for EmbeddedCalc
Source§fn compare(&self, state: &StrictVal, target: &StrictVal) -> Option<Ordering>
fn compare(&self, state: &StrictVal, target: &StrictVal) -> Option<Ordering>
Compares two state values (useful in sorting).
Source§fn accumulate(&mut self, state: &StrictVal) -> Result<(), StateCalcError>
fn accumulate(&mut self, state: &StrictVal) -> Result<(), StateCalcError>
Procedure which is called on
StateCalc to accumulate an input state.Source§fn lessen(&mut self, state: &StrictVal) -> Result<(), StateCalcError>
fn lessen(&mut self, state: &StrictVal) -> Result<(), StateCalcError>
Procedure which is called on
StateCalc to lessen an output state.Source§fn diff(&self) -> Result<Vec<StrictVal>, StateCalcError>
fn diff(&self) -> Result<Vec<StrictVal>, StateCalcError>
Procedure which is called on
StateCalc to compute the difference between an input
state and output state.Source§fn is_satisfied(&self, target: &StrictVal) -> bool
fn is_satisfied(&self, target: &StrictVal) -> bool
Detect whether the supplied state is enough to satisfy some target requirements.
impl Eq for EmbeddedCalc
impl StructuralPartialEq for EmbeddedCalc
Auto Trait Implementations§
impl Freeze for EmbeddedCalc
impl RefUnwindSafe for EmbeddedCalc
impl Send for EmbeddedCalc
impl Sync for EmbeddedCalc
impl Unpin for EmbeddedCalc
impl UnwindSafe for EmbeddedCalc
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.