Trait scsys_core::id::Id

source ·
pub trait Id<K>
where K: Identifier,
{ type Item: Borrow<K>; // Required method fn get(&self) -> &Self::Item; }
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 Associated Types§

Required Methods§

source

fn get(&self) -> &Self::Item

Implementors§

source§

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

§

type Item = S