Skip to main content

Keyed

Trait Keyed 

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

A record a table can find again by name.

Required Methods§

Source

fn key(&self) -> Cow<'_, str>

What identifies this record in its table: a put with the same key replaces it. Borrowed when the record holds it as text, owned when it is written from a value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§