Enum dbn::enums::UserDefinedInstrument
source · #[repr(u8)]pub enum UserDefinedInstrument {
No = 78,
Yes = 89,
}Expand description
Whether the instrument is user-defined.
For example usage see Getting options with their underlying.
Variants§
Trait Implementations§
source§impl AsRef<str> for UserDefinedInstrument
impl AsRef<str> for UserDefinedInstrument
source§impl Clone for UserDefinedInstrument
impl Clone for UserDefinedInstrument
source§fn clone(&self) -> UserDefinedInstrument
fn clone(&self) -> UserDefinedInstrument
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 UserDefinedInstrument
impl Debug for UserDefinedInstrument
source§impl Default for UserDefinedInstrument
impl Default for UserDefinedInstrument
source§fn default() -> UserDefinedInstrument
fn default() -> UserDefinedInstrument
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserDefinedInstrument
impl<'de> Deserialize<'de> for UserDefinedInstrument
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 From<UserDefinedInstrument> for char
impl From<UserDefinedInstrument> for char
source§fn from(user_defined_instrument: UserDefinedInstrument) -> Self
fn from(user_defined_instrument: UserDefinedInstrument) -> Self
Converts to this type from the input type.
source§impl From<UserDefinedInstrument> for u8
impl From<UserDefinedInstrument> for u8
source§fn from(enum_value: UserDefinedInstrument) -> Self
fn from(enum_value: UserDefinedInstrument) -> Self
Converts to this type from the input type.
source§impl HasPyGilRef for UserDefinedInstrument
impl HasPyGilRef for UserDefinedInstrument
§type AsRefTarget = PyCell<UserDefinedInstrument>
type AsRefTarget = PyCell<UserDefinedInstrument>
Utility type to make Py::as_ref work.
source§impl Hash for UserDefinedInstrument
impl Hash for UserDefinedInstrument
source§impl IntoEnumIterator for UserDefinedInstrument
impl IntoEnumIterator for UserDefinedInstrument
type Iterator = UserDefinedInstrumentIter
fn iter() -> UserDefinedInstrumentIter ⓘ
source§impl PartialEq for UserDefinedInstrument
impl PartialEq for UserDefinedInstrument
source§fn eq(&self, other: &UserDefinedInstrument) -> bool
fn eq(&self, other: &UserDefinedInstrument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClass for UserDefinedInstrument
impl PyClass for UserDefinedInstrument
source§impl PyClassImpl for UserDefinedInstrument
impl PyClassImpl for UserDefinedInstrument
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)]
§type ThreadChecker = SendablePyClass<UserDefinedInstrument>
type ThreadChecker = SendablePyClass<UserDefinedInstrument>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
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<UserDefinedInstrument> for PyClassImplCollector<UserDefinedInstrument>
Available on crate feature python only.
impl PyClassNewTextSignature<UserDefinedInstrument> for PyClassImplCollector<UserDefinedInstrument>
Available on crate feature
python only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a UserDefinedInstrument
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a UserDefinedInstrument
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut UserDefinedInstrument
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut UserDefinedInstrument
source§impl PyMethods<UserDefinedInstrument> for PyClassImplCollector<UserDefinedInstrument>
Available on crate feature python only.
impl PyMethods<UserDefinedInstrument> for PyClassImplCollector<UserDefinedInstrument>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for UserDefinedInstrument
impl PyTypeInfo for UserDefinedInstrument
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(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
👎Deprecated since 0.21.0:
PyTypeInfo::type_object will be replaced by PyTypeInfo::type_object_bound in a future PyO3 versionReturns the safe abstraction over the type object.
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§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_type_of will be replaced by PyTypeInfo::is_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type or a subclass of this type.source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_exact_type_of will be replaced by PyTypeInfo::is_exact_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type.source§impl Serialize for UserDefinedInstrument
impl Serialize for UserDefinedInstrument
source§impl TryFrom<u8> for UserDefinedInstrument
impl TryFrom<u8> for UserDefinedInstrument
§type Error = TryFromPrimitiveError<UserDefinedInstrument>
type Error = TryFromPrimitiveError<UserDefinedInstrument>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for UserDefinedInstrument
impl TryFromPrimitive for UserDefinedInstrument
type Primitive = u8
type Error = TryFromPrimitiveError<UserDefinedInstrument>
const NAME: &'static str = "UserDefinedInstrument"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for UserDefinedInstrument
impl Eq for UserDefinedInstrument
impl StructuralPartialEq for UserDefinedInstrument
Auto Trait Implementations§
impl Freeze for UserDefinedInstrument
impl RefUnwindSafe for UserDefinedInstrument
impl Send for UserDefinedInstrument
impl Sync for UserDefinedInstrument
impl Unpin for UserDefinedInstrument
impl UnwindSafe for UserDefinedInstrument
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