[][src]Enum roots::Roots

pub enum Roots<F: FloatType> {
    No([F; 0]),
    One([F; 1]),
    Two([F; 2]),
    Three([F; 3]),
    Four([F; 4]),
}

Sorted and unique list of roots of an equation.

Variants

No([F; 0])

Equation has no roots

One([F; 1])

Equation has one root (or all roots of the equation are the same)

Two([F; 2])

Equation has two roots

Three([F; 3])

Equation has three roots

Four([F; 4])

Equation has four roots

Methods

impl<F: FloatType> Roots<F>[src]

pub fn add_new_root(self, new_root: F) -> Self[src]

Add a new root to existing ones keeping the list of roots ordered and unique.

Trait Implementations

impl<F: FloatType> AsRef<[F]> for Roots<F>[src]

impl<F: Debug + FloatType> Debug for Roots<F>[src]

impl<F: PartialEq + FloatType> PartialEq<Roots<F>> for Roots<F>[src]

impl<F: FloatType> StructuralPartialEq for Roots<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for Roots<F> where
    F: RefUnwindSafe

impl<F> Send for Roots<F> where
    F: Send

impl<F> Sync for Roots<F> where
    F: Sync

impl<F> Unpin for Roots<F> where
    F: Unpin

impl<F> UnwindSafe for Roots<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.