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 moreimpl Eq for DataCost
impl StructuralEq for DataCost
impl StructuralPartialEq for DataCost
Auto Trait Implementations§
impl RefUnwindSafe for DataCost
impl Send for DataCost
impl Sync for DataCost
impl Unpin for DataCost
impl UnwindSafe for DataCost
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