Trait IdToID

Source
pub trait IdToID: Sized {
    // Required methods
    fn to_ID(&self) -> ID;
    fn into_ID(self) -> ID;
}

Required Methods§

Source

fn to_ID(&self) -> ID

Source

fn into_ID(self) -> ID

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 IdToID for &str

Source§

fn to_ID(&self) -> ID

Source§

fn into_ID(self) -> ID

Source§

impl IdToID for String

Source§

fn to_ID(&self) -> ID

Source§

fn into_ID(self) -> ID

Source§

impl IdToID for Id

Source§

fn to_ID(&self) -> ID

Source§

fn into_ID(self) -> ID

Implementors§