Skip to main content

Armed

Struct Armed 

Source
pub struct Armed<N>(/* private fields */)
where
    N: Episodic,
    <N as Cell>::Out<'t>: for<'t> Episode;
Expand description

An Episodic node’s own contact, sealed in: an ordinary node stepped before N, so N and any leg meant to go dark with it name it in a Gating dep. It folds its trigger at Horizon::Unbounded by construction — a latched bit is exactly the state nothing reconstitutes — which is also why it can never itself be gated.

Episodic’s where is repeated on every impl below: a trait’s where-clause is an obligation at each use of the bound, not an implied one, and Latch needs exactly it to accept Cut = N.

Trait Implementations§

Source§

impl<N> Blind for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

const WHY: &'static str = "a latch is a bit that stays set: `arms` is a predicate over an episode, not a value with a slope"

Why this node has no formula. Written for whoever asks why it is not Symbolic.
Source§

fn advance<'t>( &'t mut self, _: <<Armed<N> as Wired>::Deps as DepSet>::Outs<'t>, ) -> <Armed<N> as Cell>::Out<'t>

Source§

const PLOTS: &'static [Plot]

&[] draws nothing at all — the node stays in the topology and resolvable as a dep.
Source§

impl<N> Cell for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

const NAME: &'static str

What this cell is called wherever a human reads the graph — cards, edges, step_until. Defaults to the Rust path, which is right for a type whose identity is its name. A cell carrying parameters overrides it through Tag, because type_name renders those the compiler’s way and the rest of the graph spells the same cells its own.
Source§

type Out<'t> = bool

Source§

const REACH: Horizon = Horizon::Unit

How far back a consumer naming this in dep position reads. A bare cell is this tick’s batch and nothing more; the wrappers (Buffering, Folding) are what state anything else. This lives on Cell rather than a Dep trait because DepSet is implemented over tuples of cells, and a blanket impl<C: Cell> Dep for C would conflict with the wrapper impls.
Source§

const FOLDED: bool = false

Whether REACH is the node’s to hold — true of Folding alone. A closed gate pulls no deps, so a folded reach is the one thing gating cannot re-warm.
Source§

const RETAINED: bool = false

Whether reading this in dep position reads something the engine keeps — Buffering against the [Buffer] beside the source, Sampling against the carry beside it. Everything else is this tick’s batch and nothing more: a bare cell, a Folding reach the node holds, a Gating permission. Read more
Source§

const CLOCK: Option<Timeframe> = None

How often this cell publishes, for a root and for a node whose kernel changes its input’s rate (rates.node.declared). None — whenever its inputs do. Some(tf) — over elements whose tf period has closed, never re-entered while one is in progress (rates.node.whole-elements). Read more
Source§

type Gates: Bit = No

Whether a consumer naming this in dep position is dominated by it — Gating alone. A type rather than a const because it is what dispatches the dark branch (Dark), and only a type can demand a Latent out of gated nodes alone.
Source§

fn opens(_: Self::Out<'_>) -> bool

Whether this dep, read here, lets its consumer advance. true for every dep but a Gating one, whose out is permission rather than data.
Source§

impl<N> Clone for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

fn clone(&self) -> Armed<N>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N> Default for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

fn default() -> Armed<N>

Returns the “default value” for a type. Read more
Source§

impl<N> Gate for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

impl<N> Latch for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

type Cut = N

The gated cell whose terminal out commutates this latch. That it is gated on this latch is [cut_gated]’s to say — a bound here could only ask for Node, which names the cut’s gates through one of the two traits that declare them and rules out an Emit for nothing.
Source§

fn commutate(&mut self)

Source§

fn standing(&self) -> bool

The contact as it stands before this tick’s sweep — the one gate reading whose value does not depend on sweep order, which is what lets it suppress what feeds it. Read after the deferred commutation, so a spent episode is already open.
Source§

impl<N> Node for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Source§

type Kernel = Opaque

Source§

const PLOTS: &'static [Plot]

&[] draws nothing by default — the node stays in the topology and resolvable as a dep, and the viz can still be asked for it.
Source§

impl<N> Wired for Armed<N>
where N: Episodic, <N as Cell>::Out<'t>: for<'t> Episode,

Auto Trait Implementations§

§

impl<N> Forget for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized,

§

impl<N> Freeze for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: Freeze,

§

impl<N> RefUnwindSafe for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: RefUnwindSafe,

§

impl<N> Send for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: Send,

§

impl<N> Sync for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: Sync,

§

impl<N> Unpin for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: Unpin,

§

impl<N> UnsafeUnpin for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: UnsafeUnpin,

§

impl<N> UnwindSafe for Armed<N>
where <N as Cell>::Out<'t>: for<'t> Sized, PhantomData<N>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Dark<No> for T

Source§

fn dark() -> T

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more