pub struct OpCells { /* private fields */ }Expand description
The cells of one op template, materialised per coordinate.
Implementations§
Source§impl OpCells
impl OpCells
Sourcepub fn for_op(
template: &ParsedOp,
parent: &Arc<RwLock<Component>>,
fx: &mut ScopeFixture,
) -> Result<Option<Arc<Self>>, String>
pub fn for_op( template: &ParsedOp, parent: &Arc<RwLock<Component>>, fx: &mut ScopeFixture, ) -> Result<Option<Arc<Self>>, String>
The cells of template under its component parent, or None
when the op declares no cell:.
Registers each coordinate wire as a pull, so a coordinate the op-template kernel does not carry fails here, before any cycle.
Sourcepub fn dimensions(&self) -> impl Iterator<Item = &str>
pub fn dimensions(&self) -> impl Iterator<Item = &str>
The dimension names, in declared order.
Sourcepub fn resolve(
&self,
wires: &dyn WireSource,
cycle: u64,
) -> Result<Arc<OpCell>, ExecutionError>
pub fn resolve( &self, wires: &dyn WireSource, cycle: u64, ) -> Result<Arc<OpCell>, ExecutionError>
The cell for this cycle’s coordinate, materialised on first sight of each distinct coordinate.
Auto Trait Implementations§
impl !Freeze for OpCells
impl Forget for OpCells
impl Move for OpCells
impl RefUnwindSafe for OpCellswhere
Atomic<usize>: RefUnwindSafe,
RwLock<Component>: RefUnwindSafe,
OnceLock<RelevancyShape>: RefUnwindSafe,
Mutex<HashMap<String, Arc<OpCell>>>: RefUnwindSafe,
impl Send for OpCells
impl Sync for OpCells
impl Unpin for OpCells
impl UnsafeUnpin for OpCellswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
*const ArcInner<RwLock<Component>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Component>>>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
PhantomData<RelevancyFn>: UnsafeUnpin,
PhantomData<RelevancyShape>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
PhantomData<(String, Arc<OpCell>)>: UnsafeUnpin,
impl UnwindSafe for OpCellswhere
RawVecInner: UnwindSafe,
Arc<RwLock<Component>>: UnwindSafe,
OnceLock<RelevancyShape>: UnwindSafe,
Mutex<HashMap<String, Arc<OpCell>>>: UnwindSafe,
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> 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