Struct phoenix::state::trader_state::TraderState
source · #[repr(C)]pub struct TraderState {
pub quote_lots_locked: QuoteLots,
pub quote_lots_free: QuoteLots,
pub base_lots_locked: BaseLots,
pub base_lots_free: BaseLots,
/* private fields */
}Fields§
§quote_lots_locked: QuoteLots§quote_lots_free: QuoteLots§base_lots_locked: BaseLots§base_lots_free: BaseLotsTrait Implementations§
source§impl Clone for TraderState
impl Clone for TraderState
source§fn clone(&self) -> TraderState
fn clone(&self) -> TraderState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TraderState
impl Debug for TraderState
source§impl Default for TraderState
impl Default for TraderState
source§fn default() -> TraderState
fn default() -> TraderState
Returns the “default value” for a type. Read more
source§impl PartialEq for TraderState
impl PartialEq for TraderState
source§fn eq(&self, other: &TraderState) -> bool
fn eq(&self, other: &TraderState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for TraderState
impl Eq for TraderState
impl Pod for TraderState
impl StructuralEq for TraderState
impl StructuralPartialEq for TraderState
Auto Trait Implementations§
impl RefUnwindSafe for TraderState
impl Send for TraderState
impl Sync for TraderState
impl Unpin for TraderState
impl UnwindSafe for TraderState
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more