#[repr(C)]pub enum OrderSideOptional {
NoOrderSide = 0,
Buy = 1,
Sell = 2,
}Expand description
The stable zero-inclusive order-side representation required by the existing C ABI.
Use Option<OrderSide> for ordinary Rust optionality.
Variants§
NoOrderSide = 0
Compatibility value for no specified order side.
This value may be removed in a future version.
Buy = 1
The order is a BUY.
Sell = 2
The order is a SELL.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for OrderSideOptional
impl AsRef<str> for OrderSideOptional
Source§impl Clone for OrderSideOptional
impl Clone for OrderSideOptional
Source§fn clone(&self) -> OrderSideOptional
fn clone(&self) -> OrderSideOptional
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OrderSideOptional
Source§impl Debug for OrderSideOptional
impl Debug for OrderSideOptional
Source§impl Default for OrderSideOptional
impl Default for OrderSideOptional
Source§fn default() -> OrderSideOptional
fn default() -> OrderSideOptional
Returns the “default value” for a type. Read more
Source§impl Display for OrderSideOptional
impl Display for OrderSideOptional
impl Eq for OrderSideOptional
Source§impl FromStr for OrderSideOptional
impl FromStr for OrderSideOptional
Source§impl Hash for OrderSideOptional
impl Hash for OrderSideOptional
Source§impl PartialEq for OrderSideOptional
impl PartialEq for OrderSideOptional
impl StructuralPartialEq for OrderSideOptional
Auto Trait Implementations§
impl Freeze for OrderSideOptional
impl RefUnwindSafe for OrderSideOptional
impl Send for OrderSideOptional
impl Sync for OrderSideOptional
impl Unpin for OrderSideOptional
impl UnsafeUnpin for OrderSideOptional
impl UnwindSafe for OrderSideOptional
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more