pub struct SharedCellInScope {
pub name: String,
pub port_type: PortType,
pub cell: SharedCell,
}Expand description
One shared cell visible at a parent scope, reified for
transitive cross-binding. Returned by
ScopeKernel::shared_cells_in_scope.
Carries the name a child must use to bind to the cell,
the port type (so Rule 2 / extern synthesis at finalize
can declare a typed input slot), and the cell handle (so
spawn can attach it to the child’s matching input).
“In scope” semantics: a cell visible at the parent is one the parent itself can read or write at this scope — covering both:
- Cells the parent declared via its own program
(
shared X := <init>produces a cell-bound input slot). - Cells inherited from the parent’s own ancestors
(attached during the parent’s spawn). Without this
case, a
sharedcell at the workload root would not propagate to grand-children whose immediate parent’s body never references the name.
Both cases are answered by walking the parent’s input
slots and reading PolydatState::shared_cell for each (see
PolydatKernel::shared_cells_in_scope).
Fields§
§name: StringThe binding’s name.
port_type: PortTypeThe cell’s declared type.
cell: SharedCellThe cell.
Trait Implementations§
Source§fn clone(&self) -> SharedCellInScope
fn clone(&self) -> SharedCellInScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more