pub struct MinOutputAdaCalculator { /* private fields */ }Implementations§
Source§impl 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>
pub fn calc_size_cost( data_cost: &DataCost, size: usize, ) -> Result<Coin, JsError>
pub fn calc_required_coin( output: &TransactionOutput, data_cost: &DataCost, ) -> Result<Coin, JsError>
Trait Implementations§
Source§impl Clone for MinOutputAdaCalculator
impl Clone for MinOutputAdaCalculator
Source§fn clone(&self) -> MinOutputAdaCalculator
fn clone(&self) -> MinOutputAdaCalculator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MinOutputAdaCalculator
impl Debug for MinOutputAdaCalculator
Source§impl Ord for MinOutputAdaCalculator
impl Ord for MinOutputAdaCalculator
Source§fn cmp(&self, other: &MinOutputAdaCalculator) -> Ordering
fn cmp(&self, other: &MinOutputAdaCalculator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MinOutputAdaCalculator
impl PartialEq for MinOutputAdaCalculator
Source§fn eq(&self, other: &MinOutputAdaCalculator) -> bool
fn eq(&self, other: &MinOutputAdaCalculator) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MinOutputAdaCalculator
impl PartialOrd for MinOutputAdaCalculator
impl Eq for MinOutputAdaCalculator
impl StructuralPartialEq for MinOutputAdaCalculator
Auto Trait Implementations§
impl Freeze for MinOutputAdaCalculator
impl RefUnwindSafe for MinOutputAdaCalculator
impl Send for MinOutputAdaCalculator
impl Sync for MinOutputAdaCalculator
impl Unpin for MinOutputAdaCalculator
impl UnwindSafe for MinOutputAdaCalculator
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more