Trait has::Has
[−]
[src]
pub trait Has<T> {
fn get_ref(&self) -> &T;
}Trait to model a "has a" relationship between implementing structs and the generic parameter
provided. This trait provides only a function to retrieve a non-mutable reference to the
contained object. If a mutable reference is desired instead, use HasMut.