pub struct IrModule { /* private fields */ }Implementations§
Source§impl IrModule
impl IrModule
pub fn new( types: IndexMap<TypeId, TypeDefIr>, name_index: IndexMap<QualifiedTypeName, TypeId>, roots: Vec<TypeId>, root_codegen: RootCodegenIr, codegen_defaults: CodegenDefaultsIr, emission_defaults: EmissionDefaultsIr, ) -> Result<Self, IrBuildError>
pub fn into_checked(self) -> Result<Self, IrBuildError>
pub fn types(&self) -> &IndexMap<TypeId, TypeDefIr>
pub fn types_mut(&mut self) -> &mut IndexMap<TypeId, TypeDefIr>
pub fn name_index(&self) -> &IndexMap<QualifiedTypeName, TypeId>
pub fn name_index_mut(&mut self) -> &mut IndexMap<QualifiedTypeName, TypeId>
pub fn roots(&self) -> &[TypeId]
pub fn roots_mut(&mut self) -> &mut Vec<TypeId>
pub fn root_codegen(&self) -> &RootCodegenIr
pub fn root_codegen_mut(&mut self) -> &mut RootCodegenIr
pub fn codegen_defaults(&self) -> &CodegenDefaultsIr
pub fn codegen_defaults_mut(&mut self) -> &mut CodegenDefaultsIr
pub fn emission_defaults(&self) -> &EmissionDefaultsIr
pub fn emission_defaults_mut(&mut self) -> &mut EmissionDefaultsIr
pub fn get_type(&self, id: &TypeId) -> Option<&TypeDefIr>
pub fn get_type_by_name(&self, name: &QualifiedTypeName) -> Option<&TypeDefIr>
pub fn insert_type(&mut self, id: TypeId, ty: TypeDefIr) -> Option<TypeDefIr>
pub fn insert_name_index( &mut self, name: QualifiedTypeName, id: TypeId, ) -> Option<TypeId>
pub fn push_root(&mut self, id: TypeId)
pub fn set_roots(&mut self, roots: Vec<TypeId>)
pub fn set_root_codegen(&mut self, root_codegen: RootCodegenIr)
pub fn set_codegen_defaults(&mut self, codegen_defaults: CodegenDefaultsIr)
pub fn set_emission_defaults(&mut self, emission_defaults: EmissionDefaultsIr)
Trait Implementations§
impl StructuralPartialEq for IrModule
Auto Trait Implementations§
impl Freeze for IrModule
impl RefUnwindSafe for IrModule
impl Send for IrModule
impl Sync for IrModule
impl Unpin for IrModule
impl UnsafeUnpin for IrModule
impl UnwindSafe for IrModule
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