#[non_exhaustive]pub enum SizeUnit {
Base,
Contracts,
Shares,
}Expand description
What an instrument’s sizes count.
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.
Base
Units of the base asset, such as the coins a coin-quoted contract is written in.
Contracts
Contracts, each a fixed amount of the underlying the venue defines.
Outcome shares of an event contract, each paying one unit of the settlement currency if its outcome happens.
Trait Implementations§
impl Copy for SizeUnit
impl Eq for SizeUnit
impl StructuralPartialEq for SizeUnit
Auto Trait Implementations§
impl Freeze for SizeUnit
impl RefUnwindSafe for SizeUnit
impl Send for SizeUnit
impl Sync for SizeUnit
impl Unpin for SizeUnit
impl UnsafeUnpin for SizeUnit
impl UnwindSafe for SizeUnit
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