Struct nyx_space::md::targeter::Objective[][src]

pub struct Objective {
    pub parameter: StateParameter,
    pub desired_value: f64,
    pub tolerance: f64,
    pub multiplicative_factor: f64,
    pub additive_factor: f64,
}
Expand description

Defines a state parameter event finder

Fields

parameter: StateParameter

The state parameter to target

desired_value: f64

The desired self.desired_value, must be in the same units as the state parameter

tolerance: f64

The precision on the desired value

multiplicative_factor: f64

A multiplicative factor this parameter’s error in the targeting (defaults to 1.0)

additive_factor: f64

An additive factor to this parameters’s error in the targeting (defaults to 0.0)

Implementations

Match a specific value for the parameter. By default, the tolerance on the parameter is 0.1 times whatever unit is the default for that parameter. For example, a radius event will seek the requested value at the decimeter level, and an angle event will seek it at the tenth of a degree.

Match a specific value for the parameter to hit the specified value with the provided tolerance on the value

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

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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)

recently added

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.