Trait gluon_base::types::AsId

source ·
pub trait AsId<Id>
where Id: ?Sized,
{ // Required method fn as_id(&self) -> &Id; }

Required Methods§

source

fn as_id(&self) -> &Id

Implementors§

source§

impl<Id> AsId<Id> for Id
where Id: ?Sized,

source§

impl<T, Pos> AsId<T> for Spanned<T, Pos>