pub struct Run<O: PineOutput> {
pub outputs: Vec<O>,
pub backtest: Option<Backtest>,
}Expand description
What a full replay produced. Owns its data, so the Script is dropped once
[Script::run] returns.
Fields§
§outputs: Vec<O>What each bar produced; RunResult::collect turns these into columns.
backtest: Option<Backtest>The backtest, or None if the script declared no strategy.
Auto Trait Implementations§
impl<O> Freeze for Run<O>
impl<O> RefUnwindSafe for Run<O>where
O: RefUnwindSafe,
impl<O> Send for Run<O>where
O: Send,
impl<O> Sync for Run<O>where
O: Sync,
impl<O> Unpin for Run<O>where
O: Unpin,
impl<O> UnsafeUnpin for Run<O>
impl<O> UnwindSafe for Run<O>where
O: 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