[][src]Struct euclid::TypedSideOffsets2D

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

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

Formats the value using the given formatter. Read more

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

The resulting type after applying the + operator.

Performs the + operation.

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: Copy, U> Copy for TypedSideOffsets2D<T, U>
[src]

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

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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