[][src]Struct kurobako_core::trial::NextTrial

pub struct NextTrial {
    pub id: TrialId,
    pub params: Params,
    pub next_step: Option<u64>,
}

A trial that has a parameter set to be evaluated.

Fields

id: TrialId

The identifier of this trial.

params: Params

The parameters to be evaluated.

next_step: Option<u64>

The next evaluation step.

The evaluator needs to evaluate the parameters until this step reaches. If this is None, it means that this trial doesn't need to be evaluated anymore.

Methods

impl NextTrial[src]

pub fn evaluated(&self, values: Values, current_step: u64) -> EvaluatedTrial[src]

Makes an EvaluatedTrial instance with the given values and step.

pub fn unevaluable(&self) -> EvaluatedTrial[src]

Makes an EvaluatedTrial instance that indicates this trial couldn't be evaluated.

Trait Implementations

impl Clone for NextTrial[src]

impl Debug for NextTrial[src]

impl<'de> Deserialize<'de> for NextTrial[src]

impl Serialize for NextTrial[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,