Struct bismuth::clamp::Clamped [] [src]

pub struct Clamped<T, R>(_, _)
where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>
;

Methods

impl<T, R> Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

Trait Implementations

impl<T, R> Clamp<Clamped<T, R>> for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

impl<T, R> Clone for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, R> Copy for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

impl<T, R> From<T> for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

Performs the conversion.

impl<T, R> Eq for Clamped<T, R> where
    T: Copy + Eq + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

impl<T, R> Ord for Clamped<T, R> where
    T: Copy + Num + Ord + PartialOrd,
    R: ClampedRange<T>, 
[src]

This method returns an Ordering between self and other. Read more

impl<T, R> PartialEq for Clamped<T, R> where
    T: Copy + Num + PartialEq + PartialOrd,
    R: ClampedRange<T>, 
[src]

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

This method tests for !=.

impl<T, R> PartialEq<T> for Clamped<T, R> where
    T: Copy + Num + PartialEq + PartialOrd,
    R: ClampedRange<T>, 
[src]

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

This method tests for !=.

impl<T, R> PartialOrd for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[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<T, R> PartialOrd<T> for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[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<T, R> Add for Clamped<T, R> where
    T: Add<Output = T> + Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T, R> Add<T> for Clamped<T, R> where
    T: Add<Output = T> + Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T, R> Deref for Clamped<T, R> where
    T: Copy + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T, R> Div for Clamped<T, R> where
    T: Copy + Div<Output = T> + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T, R> Div<T> for Clamped<T, R> where
    T: Copy + Div<Output = T> + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T, R> Mul for Clamped<T, R> where
    T: Copy + Mul<Output = T> + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T, R> Mul<T> for Clamped<T, R> where
    T: Copy + Mul<Output = T> + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T, R> Neg for Clamped<T, R> where
    T: Copy + Neg<Output = T> + Num + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<T, R> Sub for Clamped<T, R> where
    T: Copy + Num + Sub<Output = T> + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T, R> Sub<T> for Clamped<T, R> where
    T: Copy + Num + Sub<Output = T> + PartialOrd,
    R: ClampedRange<T>, 
[src]

The resulting type after applying the - operator

The method for the - operator