Struct cardano_serialization_lib::DataCost
source · pub struct DataCost { /* private fields */ }
Implementations§
source§impl DataCost
impl DataCost
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 for DataCost
impl PartialEq for DataCost
source§impl PartialOrd for DataCost
impl PartialOrd 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 StructuralPartialEq for DataCost
Auto Trait Implementations§
impl Freeze for DataCost
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)