Skip to main content

IdAsStr

Trait IdAsStr 

Source
pub trait IdAsStr {
    // Required method
    fn id_str(&self) -> &str;
}

Required Methods§

Source

fn id_str(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IdAsStr for Id

Source§

fn id_str(&self) -> &str

Source§

impl IdAsStr for str

Source§

fn id_str(&self) -> &str

Source§

impl<T: IdAsStr> IdAsStr for &T

Source§

fn id_str(&self) -> &str

Implementors§