pub struct StdDev(/* private fields */);Expand description
Standard deviation multiplier for Bollinger Bands.
Wraps a positive, non-NaN f64. The constructor panics if the value is
zero, negative, or NaN.
Defaults to 2.0 (the standard Bollinger Bands setting).
Implements Eq and Hash via bit-level comparison, which is safe because
NaN is rejected at construction.
Implementations§
Trait Implementations§
impl Copy for StdDev
impl Eq for StdDev
Auto Trait Implementations§
impl Freeze for StdDev
impl RefUnwindSafe for StdDev
impl Send for StdDev
impl Sync for StdDev
impl Unpin for StdDev
impl UnsafeUnpin for StdDev
impl UnwindSafe for StdDev
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