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 PartialOrd for DataCost
impl PartialOrd for DataCost
impl 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)