pub struct PreparedRoot { /* private fields */ }Expand description
Owns a lowered root and its public-name assembly inputs, without constructing it.
CompiledModules::instantiate_root uses the same native instantiator as components.
See CompiledModules::prepared_root.
Implementations§
Source§impl PreparedRoot
impl PreparedRoot
Sourcepub fn cells(&self) -> &[RootCell]
pub fn cells(&self) -> &[RootCell]
Borrows authored root-local declarations in source order.
Included private cells never enter this slice.
§Examples
Sourcepub fn definition_label(&self) -> &SourceLabel
pub fn definition_label(&self) -> &SourceLabel
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedRoot
impl !Send for PreparedRoot
impl !Sync for PreparedRoot
impl !UnwindSafe for PreparedRoot
impl Freeze for PreparedRoot
impl Unpin for PreparedRoot
impl UnsafeUnpin for PreparedRoot
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