pub struct OpVar {
pub name: &'static str,
pub description: &'static str,
pub unit: &'static str,
}
Fields§
§name: &'static str
§description: &'static str
§unit: &'static str
Trait Implementations§
Source§impl PyClass for OpVar
impl PyClass for OpVar
Source§type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has
#[pyclass(dict)]
or not.Source§type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has
#[pyclass(weakref)]
or not.Source§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
.Source§impl PyClassAlloc for OpVar
impl PyClassAlloc for OpVar
Source§impl PyClassSend for OpVar
impl PyClassSend for OpVar
type ThreadChecker = ThreadCheckerStub<OpVar>
Source§impl PyProtoMethods for OpVar
impl PyProtoMethods for OpVar
fn for_each_proto_slot<Visitor: FnMut(PyType_Slot)>(visitor: Visitor)
fn get_buffer() -> Option<&'static PyBufferProcs>
Source§impl PyTypeInfo for OpVar
impl PyTypeInfo for OpVar
Source§const DESCRIPTION: &'static str = "\u{0}"
const DESCRIPTION: &'static str = "\u{0}"
Class doc string
Source§type BaseLayout = PyCellBase<PyAny>
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
Source§type Initializer = PyClassInitializer<OpVar>
type Initializer = PyClassInitializer<OpVar>
Initializer for layout
Source§type AsRefTarget = PyCell<OpVar>
type AsRefTarget = PyCell<OpVar>
Utility type to make Py::as_ref work
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &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
Checks if
object
is an instance of this type.Auto Trait Implementations§
impl Freeze for OpVar
impl RefUnwindSafe for OpVar
impl Send for OpVar
impl Sync for OpVar
impl Unpin for OpVar
impl UnwindSafe for OpVar
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> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.