pub struct TypeRegistry { /* private fields */ }
Implementations§
Source§impl TypeRegistry
impl TypeRegistry
pub fn new() -> TypeRegistry
pub fn allocate_type_number(&self) -> u32
pub fn get_float_type(&self) -> ResolvedType
pub fn get_int_type(&self) -> ResolvedType
pub fn get_string_type(&self) -> ResolvedType
pub fn get_bool_type(&self) -> ResolvedType
pub fn get_unit_type(&self) -> ResolvedType
pub fn register_struct_type( &self, name: String, module_path: ModulePath, fields: SeqMap<IdentifierName, ResolvedType>, ) -> ResolvedType
pub fn register_derived_struct( &self, name: &str, fields: Vec<(&str, ResolvedType)>, ) -> ResolvedType
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TypeRegistry
impl !RefUnwindSafe for TypeRegistry
impl !Send for TypeRegistry
impl !Sync for TypeRegistry
impl Unpin for TypeRegistry
impl !UnwindSafe for TypeRegistry
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