pub struct MinOutputAdaCalculator { /* private fields */ }
Implementations
sourceimpl MinOutputAdaCalculator
impl MinOutputAdaCalculator
pub fn new(output: &TransactionOutput, data_cost: &DataCost) -> Self
pub fn new_empty(
data_cost: &DataCost
) -> Result<MinOutputAdaCalculator, JsError>
pub fn set_address(&mut self, address: &Address)
pub fn set_plutus_data(&mut self, data: &PlutusData)
pub fn set_data_hash(&mut self, data_hash: &DataHash)
pub fn set_amount(&mut self, amount: &Value)
pub fn set_script_ref(&mut self, script_ref: &ScriptRef)
pub fn calculate_ada(&self) -> Result<BigNum, JsError>
Trait Implementations
sourceimpl Clone for MinOutputAdaCalculator
impl Clone for MinOutputAdaCalculator
sourcefn clone(&self) -> MinOutputAdaCalculator
fn clone(&self) -> MinOutputAdaCalculator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MinOutputAdaCalculator
impl Debug for MinOutputAdaCalculator
sourceimpl Ord for MinOutputAdaCalculator
impl Ord for MinOutputAdaCalculator
sourcefn cmp(&self, other: &MinOutputAdaCalculator) -> Ordering
fn cmp(&self, other: &MinOutputAdaCalculator) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MinOutputAdaCalculator> for MinOutputAdaCalculator
impl PartialEq<MinOutputAdaCalculator> for MinOutputAdaCalculator
sourcefn eq(&self, other: &MinOutputAdaCalculator) -> bool
fn eq(&self, other: &MinOutputAdaCalculator) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MinOutputAdaCalculator) -> bool
fn ne(&self, other: &MinOutputAdaCalculator) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MinOutputAdaCalculator> for MinOutputAdaCalculator
impl PartialOrd<MinOutputAdaCalculator> for MinOutputAdaCalculator
sourcefn partial_cmp(&self, other: &MinOutputAdaCalculator) -> Option<Ordering>
fn partial_cmp(&self, other: &MinOutputAdaCalculator) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for MinOutputAdaCalculator
impl StructuralEq for MinOutputAdaCalculator
impl StructuralPartialEq for MinOutputAdaCalculator
Auto Trait Implementations
impl RefUnwindSafe for MinOutputAdaCalculator
impl Send for MinOutputAdaCalculator
impl Sync for MinOutputAdaCalculator
impl Unpin for MinOutputAdaCalculator
impl UnwindSafe for MinOutputAdaCalculator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more