Enum nannou::draw::properties::spatial::position::Relative[][src]

pub enum Relative<S = Default> {
    Scalar(S),
    Align(Align<S>),
    Direction(Direction, S),
}

Positions that are described as Relative to some other Node.

Relative describes a relative position along a single axis.

Variants

A relative scalar distance.

Aligned to either the Start, Middle or End.

A distance as a Scalar value over the given Direction.

Trait Implementations

impl<S: Copy> Copy for Relative<S>
[src]

impl<S: Clone> Clone for Relative<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Relative<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Relative<S>
[src]

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

This method tests for !=.

Auto Trait Implementations

impl<S> Send for Relative<S> where
    S: Send

impl<S> Sync for Relative<S> where
    S: Sync