pub struct HardWeight<W> { /* private fields */ }Expand description
Public wrapper that marks a fixed or dynamic weight as hard metadata.
Trait Implementations§
Source§impl<W: Clone> Clone for HardWeight<W>
impl<W: Clone> Clone for HardWeight<W>
Source§fn clone(&self) -> HardWeight<W>
fn clone(&self) -> HardWeight<W>
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 moreSource§impl<W: Debug> Debug for HardWeight<W>
impl<W: Debug> Debug for HardWeight<W>
Source§impl<W: PartialEq> PartialEq for HardWeight<W>
impl<W: PartialEq> PartialEq for HardWeight<W>
Source§fn eq(&self, other: &HardWeight<W>) -> bool
fn eq(&self, other: &HardWeight<W>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<W: Copy> Copy for HardWeight<W>
impl<W: Eq> Eq for HardWeight<W>
impl<W> StructuralPartialEq for HardWeight<W>
Auto Trait Implementations§
impl<W> Freeze for HardWeight<W>where
W: Freeze,
impl<W> RefUnwindSafe for HardWeight<W>where
W: RefUnwindSafe,
impl<W> Send for HardWeight<W>where
W: Send,
impl<W> Sync for HardWeight<W>where
W: Sync,
impl<W> Unpin for HardWeight<W>where
W: Unpin,
impl<W> UnsafeUnpin for HardWeight<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for HardWeight<W>where
W: UnwindSafe,
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