pub struct Instantiator {
pub associated_impls: AssociatedImpls,
pub instantiation_cache: InstantiationCache,
}
Fields§
§associated_impls: AssociatedImpls
§instantiation_cache: InstantiationCache
Implementations§
Source§impl Instantiator
impl Instantiator
pub fn new() -> Self
Sourcepub fn instantiate_blueprint_and_members(
&mut self,
blueprint: &ParameterizedTypeBlueprint,
analyzed_type_parameters: &[Type],
) -> Result<Type, SemanticError>
pub fn instantiate_blueprint_and_members( &mut self, blueprint: &ParameterizedTypeBlueprint, analyzed_type_parameters: &[Type], ) -> Result<Type, SemanticError>
Sourcepub fn instantiate_signature(
&mut self,
self_type: &Type,
signature: &Signature,
scope: &TypeVariableScope,
) -> Result<Signature, SemanticError>
pub fn instantiate_signature( &mut self, self_type: &Type, signature: &Signature, scope: &TypeVariableScope, ) -> Result<Signature, SemanticError>
§Errors
Trait Implementations§
Source§impl Clone for Instantiator
impl Clone for Instantiator
Source§fn clone(&self) -> Instantiator
fn clone(&self) -> Instantiator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Instantiator
impl Debug for Instantiator
Auto Trait Implementations§
impl Freeze for Instantiator
impl RefUnwindSafe for Instantiator
impl !Send for Instantiator
impl !Sync for Instantiator
impl Unpin for Instantiator
impl UnwindSafe for Instantiator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more