pub struct RootCell {
pub name: String,
pub kind: CellKind,
pub shape: TypeShape,
pub slot: CellSlot,
pub label: SourceLabel,
}Expand description
Retains one root’s own declaration, never an included private name.
Native slots belong to the corresponding prepared root’s immutable recipe.
See CompiledModules::prepared_root.
Fields§
§name: StringRetains the authored root-local name.
kind: CellKindRetains the native kind after private-output promotion.
shape: TypeShapeRetains the complete language shape.
slot: CellSlotIdentifies the local cell in the root occurrence.
label: SourceLabelRetains the exact declaration source.
Trait Implementations§
Auto Trait Implementations§
impl !Send for RootCell
impl !Sync for RootCell
impl Freeze for RootCell
impl RefUnwindSafe for RootCell
impl Unpin for RootCell
impl UnsafeUnpin for RootCell
impl UnwindSafe for RootCell
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