Trait attr::Attr
[−]
[src]
pub trait Attr<Type: ?Sized> { type Output; fn name(&self) -> &str; fn get(&self, i: Type) -> Self::Output; }
Direct access to an attribute of a type.
All attributes need to be named for debugging purposes.
Associated Types
type Output
The resulting value when accessing the attribute
Required Methods
fn name(&self) -> &str
The attributes name
fn get(&self, i: Type) -> Self::Output
Implementation of the retrieval