Trait scsys_core::id::Id

source ·
pub trait Id<K>
where K: Identifier, Self: Borrow<K>,
{ // Required method fn get(&self) -> &K; }
Expand description

The Id trait describes the behavior of a type that can be used as an id. An Id is almost identical to an Identifier, but it is a trait that can be implemented for any type.

Required Methods§

source

fn get(&self) -> &K

Implementors§

source§

impl<K, S> Id<K> for S
where S: Borrow<K>, K: Identifier,