Struct gluon_base::instantiate::Instantiator
[−]
[src]
pub struct Instantiator { pub named_variables: RefCell<HashMap<Symbol, TcType>>, }
Fields
named_variables: RefCell<HashMap<Symbol, TcType>>
Methods
impl Instantiator
[src]
fn new() -> Instantiator
fn instantiate<F>(&mut self, typ: &TcType, on_unbound: F) -> TcType where F: FnMut(&Symbol) -> TcType
Instantiates a type, replacing all generic variables with fresh type variables
fn instantiate_<F>(&mut self, typ: &TcType, on_unbound: F) -> TcType where F: FnMut(&Symbol) -> TcType
Trait Implementations
impl Default for Instantiator
[src]
fn default() -> Instantiator
Returns the "default value" for a type. Read more