pub struct Module {
pub types: UniqueArena<Type>,
pub global_variables: Arena<GlobalVariable>,
pub global_expressions: Arena<Expression>,
pub functions: Arena<Function>,
pub entry_points: Vec<EntryPoint>,
}Expand description
A compiled NxPU IR module.
Fields§
§types: UniqueArena<Type>Deduplicated type arena.
global_variables: Arena<GlobalVariable>Module-scope variables.
global_expressions: Arena<Expression>Module-scope constant expressions.
functions: Arena<Function>Helper (non-entry-point) functions.
entry_points: Vec<EntryPoint>Compute entry points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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