Skip to main content

InstrumentSpec

Trait InstrumentSpec 

Source
pub trait InstrumentSpec:
    Debug
    + Clone
    + Copy
    + PartialEq
    + Eq
    + PartialOrd
    + Ord {
    type PriceSpec: XSpec;
    type VolumeSpec: XSpec;
    type PriceType: PriceType<Self::PriceSpec>;
    type VolumeType: VolumeType<Self::VolumeSpec>;

    const INSTRUMENT_KIND: InstrumentKind;
    const BARE_SYMBOL: &'static str;
}

Required Associated Constants§

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§