IdHelper

Trait IdHelper 

Source
pub trait IdHelper {
    // Required methods
    fn id_from_str(val: &str) -> Self;
    fn str_from_id(&self) -> &str;
}

Required Methods§

Source

fn id_from_str(val: &str) -> Self

Source

fn str_from_id(&self) -> &str

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.

Implementations on Foreign Types§

Source§

impl IdHelper for String

Source§

fn id_from_str(val: &str) -> Self

Source§

fn str_from_id(&self) -> &str

Implementors§