#[repr(u8)]pub enum Side {
Ask = 65,
Bid = 66,
None = 78,
}Expand description
A side of the market. The side of the market for resting orders, or the side of the aggressor for trades.
Variants§
Ask = 65
A sell order or sell aggressor in a trade.
Bid = 66
A buy order or a buy aggressor in a trade.
None = 78
No side specified by the original source.
Trait Implementations§
source§impl PyClassImpl for Side
impl PyClassImpl for Side
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
source§type ThreadChecker = SendablePyClass<Side>
type ThreadChecker = SendablePyClass<Side>
This handles following two situations: Read more
source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
Available on non-crate feature
gil-refs only.The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<Side> for PyClassImplCollector<Side>
Available on crate feature python only.
impl PyClassNewTextSignature<Side> for PyClassImplCollector<Side>
Available on crate feature
python only.fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<Side> for PyClassImplCollector<Side>
Available on crate feature python only.
impl PyMethods<Side> for PyClassImplCollector<Side>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for Side
impl PyTypeInfo for Side
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
source§impl TryFromPrimitive for Side
impl TryFromPrimitive for Side
impl Copy for Side
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnwindSafe for Side
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)