Skip to main content

Keyed

Trait Keyed 

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

A record with a key that is unique in its list and never changes.

Required Methods§

Source

fn key(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§