Skip to main content

StakeTableEntryType

Trait StakeTableEntryType 

Source
pub trait StakeTableEntryType<K> {
    // Required methods
    fn stake(&self) -> U256;
    fn public_key(&self) -> K;
}
Expand description

Type representing stake table entries in a StakeTable

Required Methods§

Source

fn stake(&self) -> U256

Get the stake value

Source

fn public_key(&self) -> K

Get the public key

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§