pub enum PositionType {
Long,
Short,
}Variants§
Implementations§
source§impl PositionType
impl PositionType
pub fn opposite(&self) -> PositionType
Trait Implementations§
source§impl Clone for PositionType
impl Clone for PositionType
source§fn clone(&self) -> PositionType
fn clone(&self) -> PositionType
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 PositionType
impl Debug for PositionType
source§impl Default for PositionType
impl Default for PositionType
source§fn default() -> PositionType
fn default() -> PositionType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PositionType
impl<'de> Deserialize<'de> for PositionType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PositionType
impl Display for PositionType
source§impl PartialEq for PositionType
impl PartialEq for PositionType
source§fn eq(&self, other: &PositionType) -> bool
fn eq(&self, other: &PositionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PositionType
impl Serialize for PositionType
impl StructuralPartialEq for PositionType
Auto Trait Implementations§
impl RefUnwindSafe for PositionType
impl Send for PositionType
impl Sync for PositionType
impl Unpin for PositionType
impl UnwindSafe for PositionType
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