pub enum MirostatMode {
Off,
V1,
V2,
}Expand description
Mirostat variant selection. See crate::samplers::{MirostatV1, MirostatV2}.
Variants§
Trait Implementations§
Source§impl Clone for MirostatMode
impl Clone for MirostatMode
Source§fn clone(&self) -> MirostatMode
fn clone(&self) -> MirostatMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MirostatMode
Source§impl Debug for MirostatMode
impl Debug for MirostatMode
Source§impl Default for MirostatMode
impl Default for MirostatMode
Source§fn default() -> MirostatMode
fn default() -> MirostatMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for MirostatMode
impl PartialEq for MirostatMode
Source§fn eq(&self, other: &MirostatMode) -> bool
fn eq(&self, other: &MirostatMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MirostatMode
Auto Trait Implementations§
impl Freeze for MirostatMode
impl RefUnwindSafe for MirostatMode
impl Send for MirostatMode
impl Sync for MirostatMode
impl Unpin for MirostatMode
impl UnsafeUnpin for MirostatMode
impl UnwindSafe for MirostatMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more