Struct planar::Size [] [src]

pub struct Size<T, Unit> {
    pub width: Width<T, Unit>,
    pub height: Height<T, Unit>,
}

Fields

Trait Implementations

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

impl<T: Clone, Unit> Clone for Size<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: Clone, W, Unit> Mul<V> for Size<T, Unit>
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

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

The resulting type after applying the / operator.

[src]

Performs the / operation.

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

[src]

Performs the *= operation.

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

[src]

Performs the /= operation.

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

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

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

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

[src]

Formats the value using the given formatter.

impl<T: Add<V, Output = T>, V, Unit> Add<Width<V, Unit>> for Size<T, Unit>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

[src]

Performs the += operation.

impl<T: Add<V, Output = T>, V, Unit> Add<Height<V, Unit>> for Size<T, Unit>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

[src]

Performs the += operation.

impl<T: Sub<V, Output = T>, V, Unit> Sub<Width<V, Unit>> for Size<T, Unit>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

[src]

Performs the -= operation.

impl<T: Sub<V, Output = T>, V, Unit> Sub<Height<V, Unit>> for Size<T, Unit>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

[src]

Performs the -= operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

[src]

Performs the += operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

[src]

Performs the -= operation.