pub struct InstantiationCache {
pub cache: SeqMap<String, Type>,
}
Expand description
It is not a proper Monomorphization cache, but similar
Fields§
§cache: SeqMap<String, Type>
Implementations§
Source§impl InstantiationCache
impl InstantiationCache
pub fn new() -> Self
pub fn complete_name( path: &[String], base_name: &str, argument_types: &[Type], ) -> String
pub fn add( &mut self, path: &[String], name: &str, ty: Type, argument_type: &[Type], ) -> Result<(), SeqMapError>
pub fn is_empty(&self) -> bool
pub fn get( &self, path: &[String], base_name: &str, argument_type: &[Type], ) -> Option<&Type>
Trait Implementations§
Source§impl Clone for InstantiationCache
impl Clone for InstantiationCache
Source§fn clone(&self) -> InstantiationCache
fn clone(&self) -> InstantiationCache
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 moreAuto Trait Implementations§
impl Freeze for InstantiationCache
impl RefUnwindSafe for InstantiationCache
impl Send for InstantiationCache
impl Sync for InstantiationCache
impl Unpin for InstantiationCache
impl UnwindSafe for InstantiationCache
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