Enum Lens
#[non_exhaustive]pub enum Lens {
All,
Currency(Currency),
Product(&'static str),
IdPrefix(String),
And(Box<Lens>, Box<Lens>),
Or(Box<Lens>, Box<Lens>),
Not(Box<Lens>),
}Expand description
A selection over a book. Passive data — it asks what a trade is, never what it is worth, so applying one needs no market and no mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Every trade.
Currency(Currency)
Trades in one currency.
Product(&'static str)
Trades of one product family, by the aggregate’s own name.
IdPrefix(String)
Trades whose identifier starts with a prefix — the desk or book code.
And(Box<Lens>, Box<Lens>)
Trades admitted by both.
Or(Box<Lens>, Box<Lens>)
Trades admitted by either.
Not(Box<Lens>)
Trades the inner lens rejects.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lens
impl RefUnwindSafe for Lens
impl Send for Lens
impl Sync for Lens
impl Unpin for Lens
impl UnsafeUnpin for Lens
impl UnwindSafe for Lens
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