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]

[src]

Constructor taking a scalar for each side.

[src]

Constructor taking a typed Length for each side.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

[src]

[src]

[src]

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

[src]

Constructor, setting all sides to zero.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl<'de, T, U> Deserialize<'de> for TypedSideOffsets2D<T, U> where
    T: Deserialize<'de>, 
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

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

[src]

Serialize this value into the given Serde serializer. Read more

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

impl<T, U> PartialEq for TypedSideOffsets2D<T, U> where
    T: PartialEq
[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, U> Hash for TypedSideOffsets2D<T, U> where
    T: Hash
[src]

[src]

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

1.3.0
[src]

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

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

[src]

Formats the value using the given formatter.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.