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]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

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

[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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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.

[src]

Performs the + operation.

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.

[src]

Performs the + operation.

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

The resulting type after dereferencing.

[src]

Dereferences the 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.

[src]

Performs the / operation.

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.

[src]

Performs the / operation.

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.

[src]

Performs the * operation.

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.

[src]

Performs the * operation.

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.

[src]

Performs the unary - operation.

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.

[src]

Performs the - operation.

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.

[src]

Performs the - operation.

Auto Trait Implementations

impl<T, R> Send for Clamped<T, R> where
    R: Send,
    T: Send

impl<T, R> Sync for Clamped<T, R> where
    R: Sync,
    T: Sync