Struct genotype::param_set::ParamSet3d[][src]

pub struct ParamSet3d<P: RangedParam> {
    pub x: P,
    pub y: P,
    pub z: P,
}

A 3D parameter set containing x, y and z fields.

Fields

Methods

impl<P: RangedParam> ParamSet3d<P>
[src]

Creates a new parameter set with the given values.

Returns a tuple that contains each parameter, scaled with get_scaled

Trait Implementations

impl<P: Debug + RangedParam> Debug for ParamSet3d<P>
[src]

Formats the value using the given formatter. Read more

impl<P: Copy + RangedParam> Copy for ParamSet3d<P>
[src]

impl<P: Clone + RangedParam> Clone for ParamSet3d<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: RangedParam> ParamSet<P> for ParamSet3d<P>
[src]

impl<P: RangedParam> ParamHolder for ParamSet3d<P>
[src]

The number of parameters/genes on this chromosone.

Returns a mutable reference to the gene at the given index. # Panics If index >= self.param_count() Read more

Auto Trait Implementations

impl<P> Send for ParamSet3d<P> where
    P: Send

impl<P> Sync for ParamSet3d<P> where
    P: Sync