Confidence

Trait Confidence 

Source
pub trait Confidence<T: Float + FromPrimitive> {
    // Required methods
    fn new(
        range: RangeInclusive<T>,
        confidence_level: ConfidenceLevel<T>,
    ) -> Self;
    fn start(&self) -> &T;
    fn end(&self) -> &T;
    fn confidence_level(&self) -> ConfidenceLevel<T>;

    // Provided methods
    fn width(&self) -> T { ... }
    fn half_width(&self) -> T { ... }
    fn contains(&self, val: T) -> bool { ... }
}

Required Methods§

Source

fn new(range: RangeInclusive<T>, confidence_level: ConfidenceLevel<T>) -> Self

Source

fn start(&self) -> &T

Source

fn end(&self) -> &T

Source

fn confidence_level(&self) -> ConfidenceLevel<T>

Provided Methods§

Source

fn width(&self) -> T

Source

fn half_width(&self) -> T

Source

fn contains(&self, val: T) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§