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_share: Option<f64>

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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

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

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it’s PyDict. Read more

Class doc string

#[pyclass(subclass)]

#[pyclass(extends=…)]

#[pyclass(mapping)]

Layout

Base class

This handles following two situations: Read more

Utility type to make Py::as_ref work.

Class name.

Module name, if any.

PyTypeObject instance for this type.

Checks if object is an instance of this type or a subclass of this type.

Checks if object is an instance of this type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Extracts Self from the source PyObject.

Calls U::from(self).

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

Arguments for exception

Returns the safe abstraction over the type object.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.