pub struct TypeMappingContext { /* private fields */ }Expand description
Type mapping context for type conversion
Implementations§
Source§impl TypeMappingContext
impl TypeMappingContext
Sourcepub fn add_generic_bound(&mut self, type_param: &str, bound: GaiaType)
pub fn add_generic_bound(&mut self, type_param: &str, bound: GaiaType)
Add a generic type bound
Sourcepub fn add_type_erasure(&mut self, generic_type: &str, erased_type: &str)
pub fn add_type_erasure(&mut self, generic_type: &str, erased_type: &str)
Add type erasure information
Sourcepub fn get_erased_type(&self, generic_type: &str) -> Option<&String>
pub fn get_erased_type(&self, generic_type: &str) -> Option<&String>
Get the erased type for a generic type
Trait Implementations§
Source§impl Debug for TypeMappingContext
impl Debug for TypeMappingContext
Source§impl Default for TypeMappingContext
impl Default for TypeMappingContext
Source§fn default() -> TypeMappingContext
fn default() -> TypeMappingContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TypeMappingContext
impl RefUnwindSafe for TypeMappingContext
impl Send for TypeMappingContext
impl Sync for TypeMappingContext
impl Unpin for TypeMappingContext
impl UnsafeUnpin for TypeMappingContext
impl UnwindSafe for TypeMappingContext
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