Skip to main content

DynWeight

Type Alias DynWeight 

Source
pub type DynWeight = dyn Weight;

Trait Implementations§

Source§

impl Archive for Box<DynWeight>

Source§

type Archived = ()

The archived representation of this type. Read more
Source§

type Resolver = ()

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, _pos: usize, _resolver: Self::Resolver, _out: *mut Self::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl ArchiveTrait for DynWeight

Source§

impl Clone for Box<DynWeight>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DowncastTrait for DynWeight

Source§

fn downcast_checked<T: AsAny>(&self) -> &T

Cast trait object reference to a reference to a concrete type T. Read more
Source§

fn downcast_mut_checked<T: AsAny>(&mut self) -> &mut T

Cast trait object reference to a mutable reference to a concrete type T. Read more
Source§

unsafe fn downcast<T: AsAny>(&self) -> &T

Cast trait object reference to a reference to a concrete type T, eliding type checking. Read more
Source§

unsafe fn downcast_mut<T: AsAny>(&mut self) -> &mut T

Cast trait object reference to a reference to a mutable reference to concrete type T, eliding type checking. Read more
Source§

impl Hash for DynWeight

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
Source§

impl Ord for DynWeight

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl PartialEq for DynWeight

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for DynWeight

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize<CompositeSerializer<FBufSerializer<FBuf>, FallbackScratch<HeapScratch<65536>, AllocScratch>, SharedSerializeMap>> for Box<DynWeight>

Source§

fn serialize( &self, _serializer: &mut Serializer, ) -> Result<Self::Resolver, <Serializer as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
Source§

impl Eq for DynWeight