Skip to main content

Keyed

Trait Keyed 

Source
pub trait Keyed {
    // Required method
    fn key(&self) -> &Address;
}
Expand description

The on-chain address of an account representation, that is, the generic A used in our parser. This can be used by implementations to use custom address types in the parser, as long as they implement Keyed.

Required Methods§

Source

fn key(&self) -> &Address

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Keyed for AccountView

Source§

fn key(&self) -> &Address

Implementors§