Trait FreshGen

Source
pub trait FreshGen<Head: ?Sized, Leaf> {
    // Required method
    fn fresh(&mut self, name_hint: &Head) -> Leaf;
}
Expand description

This trait lets us statically dispatch between fresh methods for generic structs.

Required Methods§

Source

fn fresh(&mut self, name_hint: &Head) -> Leaf

Implementors§