Struct swifco_rs::systems::management::carcasses::CarcassRemovalParams
source · [−]pub struct CarcassRemovalParams {
pub start: u32,
pub duration: u32,
pub interval: u32,
pub repetitions: u32,
pub detection_probability: f64,
pub detection_duration: u32,
}
Expand description
Carcass removal scheduling and detection parameters
Fields
start: u32
tick at which the first campaign will start (defaults to zero)
duration: u32
duration of each campaign in ticks
interval: u32
interval between repeated campaigns in ticks (defaults to :attr:duration
, must be at least as long as :attr:duration
)
repetitions: u32
number of repeated campaigns (defaults to one, must not be equal to zero)
detection_probability: f64
per carcass probability of detection
detection_duration: u32
maximum duration between death and detection
Implementations
Trait Implementations
sourceimpl Clone for CarcassRemovalParams
impl Clone for CarcassRemovalParams
sourcefn clone(&self) -> CarcassRemovalParams
fn clone(&self) -> CarcassRemovalParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CarcassRemovalParams
impl Debug for CarcassRemovalParams
sourceimpl IntoPy<Py<PyAny>> for CarcassRemovalParams
impl IntoPy<Py<PyAny>> for CarcassRemovalParams
sourceimpl PyClass for CarcassRemovalParams
impl PyClass for CarcassRemovalParams
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
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
. Read more
sourceimpl PyClassImpl for CarcassRemovalParams
impl PyClassImpl for CarcassRemovalParams
sourceconst IS_BASETYPE: bool
const IS_BASETYPE: bool
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool
const IS_SUBCLASS: bool
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool
const IS_MAPPING: bool
#[pyclass(mapping)]
type Layout = PyCell<Self>
type Layout = PyCell<Self>
Layout
type BaseType = PyAny
type BaseType = PyAny
Base class
type ThreadChecker = ThreadCheckerStub<CarcassRemovalParams>
type ThreadChecker = ThreadCheckerStub<CarcassRemovalParams>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl PyMethods<CarcassRemovalParams> for PyClassImplCollector<CarcassRemovalParams>
impl PyMethods<CarcassRemovalParams> for PyClassImplCollector<CarcassRemovalParams>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for CarcassRemovalParams
impl PyTypeInfo for CarcassRemovalParams
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
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.
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 RefUnwindSafe for CarcassRemovalParams
impl Send for CarcassRemovalParams
impl Sync for CarcassRemovalParams
impl Unpin for CarcassRemovalParams
impl UnwindSafe for CarcassRemovalParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<T> PyErrArguments for T where
T: IntoPy<Py<PyAny>> + Send + Sync,
impl<T> PyErrArguments for T where
T: IntoPy<Py<PyAny>> + Send + Sync,
pub fn arguments(self, py: Python<'_>) -> Py<PyAny>
pub fn arguments(self, py: Python<'_>) -> Py<PyAny>
Arguments for exception
impl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
pub fn type_object(py: Python<'_>) -> &PyType
pub fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more