pub trait Factory {
type Item;
// Required method
fn create(&self) -> Self::Item;
}
Expand description
This trait allows for creating any number of instances of the Item
type.
pub trait Factory {
type Item;
// Required method
fn create(&self) -> Self::Item;
}
This trait allows for creating any number of instances of the Item
type.