pub struct ProbabilityValidator;Expand description
Probability validator (0.0 to 1.0)
Trait Implementations§
Source§impl ParameterValidator<f64> for ProbabilityValidator
impl ParameterValidator<f64> for ProbabilityValidator
type Error = SklearsError
Source§fn validate(
value: &f64,
) -> Result<(), <ProbabilityValidator as ParameterValidator<f64>>::Error>
fn validate( value: &f64, ) -> Result<(), <ProbabilityValidator as ParameterValidator<f64>>::Error>
Validate parameter at compile time
Auto Trait Implementations§
impl Freeze for ProbabilityValidator
impl RefUnwindSafe for ProbabilityValidator
impl Send for ProbabilityValidator
impl Sync for ProbabilityValidator
impl Unpin for ProbabilityValidator
impl UnwindSafe for ProbabilityValidator
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> 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