pub struct NonNumericParameter {
pub name: &'static str,
pub description: &'static str,
pub unit: &'static str,
pub group: &'static str,
pub default: PyObject,
}
Fields§
§name: &'static str
§description: &'static str
§unit: &'static str
§group: &'static str
§default: PyObject
Trait Implementations§
Source§impl PyClass for NonNumericParameter
impl PyClass for NonNumericParameter
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 NonNumericParameter
impl PyClassAlloc for NonNumericParameter
Source§impl PyClassSend for NonNumericParameter
impl PyClassSend for NonNumericParameter
type ThreadChecker = ThreadCheckerStub<NonNumericParameter>
Source§impl PyProtoMethods for NonNumericParameter
impl PyProtoMethods for NonNumericParameter
fn for_each_proto_slot<Visitor: FnMut(PyType_Slot)>(visitor: Visitor)
fn get_buffer() -> Option<&'static PyBufferProcs>
Source§impl PyTypeInfo for NonNumericParameter
impl PyTypeInfo for NonNumericParameter
Source§const DESCRIPTION: &'static str = "\u{0}"
const DESCRIPTION: &'static str = "\u{0}"
Class doc string
Source§type Type = NonNumericParameter
type Type = NonNumericParameter
Type of objects to store in PyObject struct
Source§type Layout = PyCell<NonNumericParameter>
type Layout = PyCell<NonNumericParameter>
Layout
Source§type BaseLayout = PyCellBase<PyAny>
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
Source§type Initializer = PyClassInitializer<NonNumericParameter>
type Initializer = PyClassInitializer<NonNumericParameter>
Initializer for layout
Source§type AsRefTarget = PyCell<NonNumericParameter>
type AsRefTarget = PyCell<NonNumericParameter>
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 NonNumericParameter
impl !RefUnwindSafe for NonNumericParameter
impl Send for NonNumericParameter
impl Sync for NonNumericParameter
impl Unpin for NonNumericParameter
impl UnwindSafe for NonNumericParameter
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.