Trait datatypes::ImportantFunctions
source · pub trait ImportantFunctions {
type InputType;
type ReturnType;
// Required methods
fn new(data: Self::InputType) -> Self;
fn get_value(&self) -> Self::ReturnType;
}Expand description
A trait implemented by types to provide a new and get_value function
Required Associated Types§
sourcetype ReturnType
type ReturnType
The type returned by get_value
Required Methods§
sourcefn get_value(&self) -> Self::ReturnType
fn get_value(&self) -> Self::ReturnType
A function that returns the hold data
Object Safety§
This trait is not object safe.