pub struct StrategyEvent<'a> { /* private fields */ }Expand description
One complete replay timestamp presented in already committed order.
Implementations§
Source§impl<'a> StrategyEvent<'a>
impl<'a> StrategyEvent<'a>
pub const fn new( primary_events: &'a [FeedEvent], closed_bars: &'a [ClosedBar], observations: &'a [StrategyObservation], feedback: StrategyFeedback<'a>, ) -> Self
pub const fn primary_events(self) -> &'a [FeedEvent]
pub const fn closed_bars(self) -> &'a [ClosedBar]
pub const fn observations(self) -> &'a [StrategyObservation]
pub const fn feedback(self) -> StrategyFeedback<'a>
Trait Implementations§
Source§impl<'a> Clone for StrategyEvent<'a>
impl<'a> Clone for StrategyEvent<'a>
Source§fn clone(&self) -> StrategyEvent<'a>
fn clone(&self) -> StrategyEvent<'a>
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 moreimpl<'a> Copy for StrategyEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for StrategyEvent<'a>
impl<'a> RefUnwindSafe for StrategyEvent<'a>
impl<'a> Send for StrategyEvent<'a>
impl<'a> Sync for StrategyEvent<'a>
impl<'a> Unpin for StrategyEvent<'a>
impl<'a> UnsafeUnpin for StrategyEvent<'a>
impl<'a> UnwindSafe for StrategyEvent<'a>
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