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§
fn who(&self) -> Self::Who
fn moment(&self) -> u64
fn amount(&self) -> u128
fn earns_minted(&self) -> bool
fn earns_credit(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".