[][src]Struct casperlabs_types::account::Weight

pub struct Weight(_);

The weight attributed to a given AccountHash in an account's associated keys.

Implementations

impl Weight[src]

pub fn new(weight: u8) -> Weight[src]

Constructs a new Weight.

pub fn value(self) -> u8[src]

Returns the value of self as a u8.

Trait Implementations

impl CLTyped for Weight[src]

impl Clone for Weight[src]

impl Copy for Weight[src]

impl Debug for Weight[src]

impl Eq for Weight[src]

impl FromBytes for Weight[src]

impl Ord for Weight[src]

impl PartialEq<Weight> for Weight[src]

impl PartialOrd<Weight> for Weight[src]

impl StructuralEq for Weight[src]

impl StructuralPartialEq for Weight[src]

impl ToBytes for Weight[src]

Auto Trait Implementations

impl RefUnwindSafe for Weight

impl Send for Weight

impl Sync for Weight

impl Unpin for Weight

impl UnwindSafe for Weight

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.