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