Skip to main content

PositionResolver

Trait PositionResolver 

Source
pub trait PositionResolver {
    // Required methods
    fn resolve(&self, pr: &PositionRef) -> Vec<PositionId> ⓘ;
    fn position_entry_info(&self, id: &PositionId) -> Option<(f64, Side)>;
}
Expand description

Resolves a PositionRef to concrete position ID(s) using engine state.

Required Methods§

Source

fn resolve(&self, pr: &PositionRef) -> Vec<PositionId> ⓘ

Resolve a position reference to zero or more concrete position IDs.

Source

fn position_entry_info(&self, id: &PositionId) -> Option<(f64, Side)>

Get entry info (average_entry, side) for a position.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§