pub struct IndicatorInstance { /* private fields */ }Implementations§
Source§impl IndicatorInstance
impl IndicatorInstance
Sourcepub fn with_limits(
compiled: Arc<CompiledIndicator>,
config: IndicatorConfig,
limits: RuntimeLimits,
) -> Result<Self, PlanningError>
pub fn with_limits( compiled: Arc<CompiledIndicator>, config: IndicatorConfig, limits: RuntimeLimits, ) -> Result<Self, PlanningError>
Instantiate a shared compiled program without copying its HIR or registry.
Sourcepub fn evaluate_closed(
&mut self,
frame: IndicatorFrame,
) -> Result<FrameOutput, RuntimeError>
pub fn evaluate_closed( &mut self, frame: IndicatorFrame, ) -> Result<FrameOutput, RuntimeError>
Evaluate and commit one closed chart frame.
Sourcepub fn preview_open(
&mut self,
frame: IndicatorFrame,
) -> Result<FrameOutput, RuntimeError>
pub fn preview_open( &mut self, frame: IndicatorFrame, ) -> Result<FrameOutput, RuntimeError>
Preview the current open frame from the previous closed state.
pub fn committed_index(&self) -> Option<usize>
Sourcepub fn reset(&mut self, config: IndicatorConfig) -> Result<(), PlanningError>
pub fn reset(&mut self, config: IndicatorConfig) -> Result<(), PlanningError>
Discard all committed values and bind a new input configuration.
The caller must recalculate the loaded closed frames before requesting an open preview.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndicatorInstance
impl RefUnwindSafe for IndicatorInstance
impl Send for IndicatorInstance
impl Sync for IndicatorInstance
impl Unpin for IndicatorInstance
impl UnsafeUnpin for IndicatorInstance
impl UnwindSafe for IndicatorInstance
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