Get

Trait Get 

Source
pub trait Get<T> {
    // Required method
    fn get(&self) -> &T;
}
Expand description

The Get trait establishes a basic interface for objects to retrieve an immutable reference to an inner value of type T.

Required Methods§

Source

fn get(&self) -> &T

returns an immutable reference to the inner value

Implementors§