pub struct GaussianMaxStdDev(/* private fields */);Expand description
The Gaussian’s maximum standard deviation.
Implementations§
Source§impl GaussianMaxStdDev
impl GaussianMaxStdDev
Sourcepub const fn new(max_std_dev: f32) -> Option<Self>
pub const fn new(max_std_dev: f32) -> Option<Self>
Create a new Gaussian maximum standard deviation.
Returns None if the maximum standard deviation is not in the range of [0.0, 3.0].
Sourcepub const unsafe fn new_unchecked(max_std_dev: f32) -> Self
pub const unsafe fn new_unchecked(max_std_dev: f32) -> Self
Create a new Gaussian maximum standard deviation without checking.
§Safety
The maximum standard deviation must be in the range of [0.0, 3.0].
Trait Implementations§
Source§impl Clone for GaussianMaxStdDev
impl Clone for GaussianMaxStdDev
Source§fn clone(&self) -> GaussianMaxStdDev
fn clone(&self) -> GaussianMaxStdDev
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GaussianMaxStdDev
impl Debug for GaussianMaxStdDev
Source§impl Default for GaussianMaxStdDev
impl Default for GaussianMaxStdDev
Source§impl PartialEq for GaussianMaxStdDev
impl PartialEq for GaussianMaxStdDev
impl Copy for GaussianMaxStdDev
impl Eq for GaussianMaxStdDev
impl StructuralPartialEq for GaussianMaxStdDev
Auto Trait Implementations§
impl Freeze for GaussianMaxStdDev
impl RefUnwindSafe for GaussianMaxStdDev
impl Send for GaussianMaxStdDev
impl Sync for GaussianMaxStdDev
impl Unpin for GaussianMaxStdDev
impl UnwindSafe for GaussianMaxStdDev
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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