Struct planar::Length [] [src]

pub struct Length<T, Unit>(_, _);

A generic length with a scalar value and dimension

Methods

impl<T, Unit> Length<T, Unit>
[src]

Creates a new $s with a specified value and unit

[src]

impl<T, Unit> Length<T, Unit>
[src]

Returns the scalar value without a unit, consuming the $s

[src]

impl<T: Clone, Unit> Length<T, Unit>
[src]

Returns the scalar value without a unit

[src]

Trait Implementations

impl<T: Copy, Unit> Copy for Length<T, Unit>
[src]

impl<T: Clone, Unit> Clone for Length<T, Unit>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Mul<V, Output = W>, V, W, Unit> Mul<V> for Length<T, Unit>
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T: Div<V, Output = W>, V, W, Unit> Div<V> for Length<T, Unit>
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<T: MulAssign<V>, V, Unit> MulAssign<V> for Length<T, Unit>
[src]

[src]

Performs the *= operation.

impl<T: DivAssign<V>, V, Unit> DivAssign<V> for Length<T, Unit>
[src]

[src]

Performs the /= operation.

impl<T: Neg<Output = W>, W, Unit> Neg for Length<T, Unit>
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<T: PartialEq, Unit> PartialEq for Length<T, Unit>
[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: PartialOrd, Unit> PartialOrd for Length<T, Unit>
[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: Eq, Unit> Eq for Length<T, Unit>
[src]

impl<T: Ord, Unit> Ord for Length<T, Unit>
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: Debug, Unit> Debug for Length<T, Unit>
[src]

[src]

Formats the value using the given formatter.

impl<T: Add<V, Output = W>, V, W, Unit> Add<Length<V, Unit>> for Length<T, Unit>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: AddAssign<V>, V, Unit> AddAssign<Length<V, Unit>> for Length<T, Unit>
[src]

[src]

Performs the += operation.

impl<T: Sub<V, Output = W>, V, W, Unit> Sub<Length<V, Unit>> for Length<T, Unit>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: SubAssign<V>, V, Unit> SubAssign<Length<V, Unit>> for Length<T, Unit>
[src]

[src]

Performs the -= operation.