Struct euclid::TypedSideOffsets2D[][src]

#[repr(C)]
pub struct TypedSideOffsets2D<T, U> { pub top: T, pub right: T, pub bottom: T, pub left: T, // some fields omitted }

Fields

Methods

impl<T: Copy, U> TypedSideOffsets2D<T, U>
[src]

Constructor taking a scalar for each side.

Constructor taking a typed Length for each side.

Access self.top as a typed Length instead of a scalar value.

Access self.right as a typed Length instead of a scalar value.

Access self.bottom as a typed Length instead of a scalar value.

Access self.left as a typed Length instead of a scalar value.

Constructor setting the same value to all sides, taking a scalar value directly.

Constructor setting the same value to all sides, taking a typed Length.

impl<T, U> TypedSideOffsets2D<T, U> where
    T: Add<T, Output = T> + Copy
[src]

impl<T: Copy + Zero, U> TypedSideOffsets2D<T, U>
[src]

Constructor, setting all sides to zero.

Trait Implementations

impl<T: Clone, U> Clone for TypedSideOffsets2D<T, U>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy, U> Copy for TypedSideOffsets2D<T, U>
[src]

impl<T, U> Eq for TypedSideOffsets2D<T, U> where
    T: Eq
[src]

impl<T, U> PartialEq for TypedSideOffsets2D<T, U> where
    T: PartialEq
[src]

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

This method tests for !=.

impl<T, U> Hash for TypedSideOffsets2D<T, U> where
    T: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Debug, U> Debug for TypedSideOffsets2D<T, U>
[src]

Formats the value using the given formatter. Read more

impl<T, U> Add for TypedSideOffsets2D<T, U> where
    T: Copy + Add<T, Output = T>, 
[src]

The resulting type after applying the + operator.

Performs the + operation.

Auto Trait Implementations

impl<T, U> Send for TypedSideOffsets2D<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for TypedSideOffsets2D<T, U> where
    T: Sync,
    U: Sync