Struct cardano_serialization_lib::DataCost
source · pub struct DataCost(_);
Implementations§
source§impl DataCost
impl DataCost
sourcepub fn new_coins_per_word(coins_per_word: &Coin) -> DataCost
👎Deprecated since 11.0.0: Since babbage era we should use coins per byte. Use .new_coins_per_byte
instead.
pub fn new_coins_per_word(coins_per_word: &Coin) -> DataCost
.new_coins_per_byte
instead.!!! DEPRECATED !!!
Since babbage era we should use coins per byte. Use .new_coins_per_byte
instead.
pub fn new_coins_per_byte(coins_per_byte: &Coin) -> DataCost
pub fn coins_per_byte(&self) -> Coin
Trait Implementations§
source§impl Ord for DataCost
impl Ord for DataCost
source§impl PartialEq<DataCost> for DataCost
impl PartialEq<DataCost> for DataCost
source§impl PartialOrd<DataCost> for DataCost
impl PartialOrd<DataCost> for DataCost
1.0.0 · source§fn 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