Struct alga::general::Wrapper [] [src]

pub struct Wrapper<M>(pub M);

Wrapper that allows to use operators on algebraic types.

Trait Implementations

impl<M: Clone> Clone for Wrapper<M>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<M: Copy> Copy for Wrapper<M>
[src]

impl<M: PartialOrd> PartialOrd for Wrapper<M>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<M: PartialEq> PartialEq for Wrapper<M>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<M: Debug> Debug for Wrapper<M>
[src]

Formats the value using the given formatter.

impl<M: Display> Display for Wrapper<M>
[src]

Formats the value using the given formatter.

impl<M> ApproxEq for Wrapper<M> where M: ApproxEq
[src]

The epsilon type used measure an error.

The default epsilon value to use in ApproxEq::approx_eq.

Compare a and b for approximate equality using the specified epsilon value. Read more

Compare a and b for approximate equality using the default epsilon value returned by ApproxEq::default_epsilon. Read more

impl<M> Add<Wrapper<M>> for Wrapper<M> where M: Magma<Additive>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<M> Neg for Wrapper<M> where M: Quasigroup<Additive>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<M> Sub<Wrapper<M>> for Wrapper<M> where M: Quasigroup<Additive>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<M> Mul<Wrapper<M>> for Wrapper<M> where M: Magma<Multiplicative>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<M> Recip for Wrapper<M> where M: Quasigroup<Multiplicative>
[src]

The reciprocal type.

Returns the reciprocal of self.

impl<M> Div<Wrapper<M>> for Wrapper<M> where M: Quasigroup<Multiplicative>
[src]

The resulting type after applying the / operator

The method for the / operator