pub(crate) struct GenericVariableMappingContext {
name_mapping: HashMap<String, String>,
pub positional_mapping: Vec<String>,
}Fields§
§name_mapping: HashMap<String, String>§positional_mapping: Vec<String>Implementations§
source§impl GenericVariableMappingContext
impl GenericVariableMappingContext
pub fn new() -> Self
pub fn get_replacement_string(&self) -> String
pub fn insert_positional_mapping(&mut self, concrete_type: String)
pub fn get_mapping_at_position(&self, idx: usize) -> String
pub fn insert_named_mapping( &mut self, generic_type_var: String, concrete_type: String )
pub fn get_named_mapping(&self, generic_type_var: &str) -> Option<String>
Trait Implementations§
source§impl Clone for GenericVariableMappingContext
impl Clone for GenericVariableMappingContext
source§fn clone(&self) -> GenericVariableMappingContext
fn clone(&self) -> GenericVariableMappingContext
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 RefUnwindSafe for GenericVariableMappingContext
impl Send for GenericVariableMappingContext
impl Sync for GenericVariableMappingContext
impl Unpin for GenericVariableMappingContext
impl UnwindSafe for GenericVariableMappingContext
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