Struct swifco_rs::systems::management::hunting::HuntingParams
source · [−]pub struct HuntingParams {
pub start: u32,
pub duration: u32,
pub interval: u32,
pub repetitions: u32,
pub target_share: Option<f64>,
pub target_density: Option<f64>,
pub target_number: Option<u32>,
pub continuous_estimate: bool,
pub females_only: bool,
}
Expand description
Hunting scheduling and target 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)
target given as a share of animals to be hunted during each campaign (conflicts with :attr:target_density
and :attr:target_number
)
target_density: Option<f64>
target given as the density to be reached at the end of each campaign (conflicts with :attr:target_share
and :attr:target_number
)
target_number: Option<u32>
target given as the number of animals to be hunted during each campaign (conflicts with :attr:target_share
and :attr:target_density
)
continuous_estimate: bool
continously update estimated mortality required to reach management target.
females_only: bool
limit management to females (note that this implies that management targets are relative to the female population)
Implementations
sourceimpl HuntingParams
impl HuntingParams
Trait Implementations
sourceimpl Clone for HuntingParams
impl Clone for HuntingParams
sourcefn clone(&self) -> HuntingParams
fn clone(&self) -> HuntingParams
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 HuntingParams
impl Debug for HuntingParams
sourceimpl IntoPy<Py<PyAny>> for HuntingParams
impl IntoPy<Py<PyAny>> for HuntingParams
sourceimpl PyClass for HuntingParams
impl PyClass for HuntingParams
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 HuntingParams
impl PyClassImpl for HuntingParams
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<HuntingParams>
type ThreadChecker = ThreadCheckerStub<HuntingParams>
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<HuntingParams> for PyClassImplCollector<HuntingParams>
impl PyMethods<HuntingParams> for PyClassImplCollector<HuntingParams>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for HuntingParams
impl PyTypeInfo for HuntingParams
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 HuntingParams
impl Send for HuntingParams
impl Sync for HuntingParams
impl Unpin for HuntingParams
impl UnwindSafe for HuntingParams
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