Struct IntegerParameter

Source
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 IntoPy<Py<PyAny>> for IntegerParameter

Source§

fn into_py(self, py: Python<'_>) -> PyObject

Performs the conversion.
Source§

impl PyClass for IntegerParameter

Source§

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.
Source§

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.
Source§

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

Source§

unsafe fn new(py: Python<'_>, subtype: *mut PyTypeObject) -> *mut Self::Layout

Allocate the actual field for #[pyclass]. Read more
Source§

unsafe fn dealloc(py: Python<'_>, self_: *mut Self::Layout)

Deallocate #[pyclass] on the Python heap. Read more
Source§

impl PyClassSend for IntegerParameter

Source§

type ThreadChecker = ThreadCheckerStub<IntegerParameter>

Source§

impl PyProtoMethods for IntegerParameter

Source§

fn for_each_proto_slot<Visitor: FnMut(PyType_Slot)>(visitor: Visitor)

Source§

fn get_buffer() -> Option<&'static PyBufferProcs>

Source§

impl PyTypeInfo for IntegerParameter

Source§

const NAME: &'static str = "IntegerParameter"

Class name
Source§

const MODULE: Option<&'static str> = None

Module name, if any
Source§

const DESCRIPTION: &'static str = "\u{0}"

Class doc string
Source§

const FLAGS: usize = 0usize

Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)
Source§

type Type = IntegerParameter

Type of objects to store in PyObject struct
Source§

type BaseType = PyAny

Base class
Source§

type Layout = PyCell<IntegerParameter>

Layout
Source§

type BaseLayout = PyCellBase<PyAny>

Layout of Basetype.
Source§

type Initializer = PyClassInitializer<IntegerParameter>

Initializer for layout
Source§

type AsRefTarget = PyCell<IntegerParameter>

Utility type to make Py::as_ref work
Source§

fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject

PyTypeObject instance for this type.
Source§

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

Checks if object is an instance of this type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PyErrArguments for T
where T: IntoPy<Py<PyAny>> + Send + Sync,

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception
Source§

impl<T> PyTypeObject for T
where T: PyTypeInfo,

Source§

fn type_object(py: Python<'_>) -> &PyType

Returns the safe abstraction over the type object.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.