pub struct BarRow {
pub candle: Candle,
pub values: BTreeMap<Arc<str>, f64>,
}Expand description
One bar’s computed state: the bar plus every ready indicator’s value.
Fields§
§candle: CandleThe bar.
values: BTreeMap<Arc<str>, f64>Values of indicators that have produced output this bar.
The keys are shared with the engine rather than owned per row: a long run
otherwise allocated one fresh String per value per bar, and cloning an
Arc<str> is a refcount bump. Lookup is unchanged – Arc<str> borrows
as str, so values.get("ema_fast") still works.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BarRow
impl RefUnwindSafe for BarRow
impl Send for BarRow
impl Sync for BarRow
impl Unpin for BarRow
impl UnsafeUnpin for BarRow
impl UnwindSafe for BarRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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