Trait NumberedItems

Source
pub trait NumberedItems: Default {
    type Item: DeserializeOwned + Serialize;

    const PREFIX: &'static str;

    // Provided methods
    fn key_matches(name: &str) -> bool { ... }
    fn check_key(name: &str) -> Option<u32> { ... }
    fn make_key(number: &u32) -> String { ... }
}

Required Associated Constants§

Source

const PREFIX: &'static str

Required Associated Types§

Provided Methods§

Source

fn key_matches(name: &str) -> bool

Source

fn check_key(name: &str) -> Option<u32>

Source

fn make_key(number: &u32) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§