Skip to main content

Trades

Struct Trades 

Source
pub struct Trades;

Trait Implementations§

Source§

impl Cell for Trades

Source§

type Out<'t> = TradeCols<'t>

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§

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 Nudge for Trades

Source§

type Scratch = TradeBuf

Source§

fn stage<'t>( out: TradeCols<'t>, s: &mut TradeBuf, bump: Option<usize>, h: f64, ) -> f64

Materialize out into scratch; if bump is Some(slot), perturb that element by about h. Returns the perturbation actually applied, in the dep’s own units — see Bump.
Source§

fn view<'l>(s: &'l TradeBuf) -> TradeCols<'l>

View staged scratch as this cell’s out at the borrow lifetime 'l.

Auto Trait Implementations§

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> Dark<No> for T

Source§

fn dark() -> T

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, 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