Skip to main content

Earner

Trait Earner 

Source
pub trait Earner {
    type Who: Ord + Clone;

    // Required methods
    fn who(&self) -> Self::Who;
    fn moment(&self) -> u64;
    fn amount(&self) -> u128;
    fn earns_minted(&self) -> bool;
    fn earns_credit(&self) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn who(&self) -> Self::Who

Source

fn moment(&self) -> u64

Source

fn amount(&self) -> u128

Source

fn earns_minted(&self) -> bool

Source

fn earns_credit(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§