pub struct TransactionWeight(/* private fields */);Expand description
Serialized transaction weight, in HSD witness weight units.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionWeight
impl Clone for TransactionWeight
Source§fn clone(&self) -> TransactionWeight
fn clone(&self) -> TransactionWeight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionWeight
Source§impl Debug for TransactionWeight
impl Debug for TransactionWeight
Source§impl Default for TransactionWeight
impl Default for TransactionWeight
Source§fn default() -> TransactionWeight
fn default() -> TransactionWeight
Returns the “default value” for a type. Read more
impl Eq for TransactionWeight
Source§impl From<u32> for TransactionWeight
impl From<u32> for TransactionWeight
Source§impl Hash for TransactionWeight
impl Hash for TransactionWeight
Source§impl Ord for TransactionWeight
impl Ord for TransactionWeight
Source§fn cmp(&self, other: &TransactionWeight) -> Ordering
fn cmp(&self, other: &TransactionWeight) -> Ordering
1.21.0 (const: unstable) · 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 TransactionWeight
impl PartialEq for TransactionWeight
Source§impl PartialOrd for TransactionWeight
impl PartialOrd for TransactionWeight
impl StructuralPartialEq for TransactionWeight
Auto Trait Implementations§
impl Freeze for TransactionWeight
impl RefUnwindSafe for TransactionWeight
impl Send for TransactionWeight
impl Sync for TransactionWeight
impl Unpin for TransactionWeight
impl UnsafeUnpin for TransactionWeight
impl UnwindSafe for TransactionWeight
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