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

pub enum Relative<S = Default> {
    Matching,
    Padded(S),
    Scaled(S),
}

Describes a dimension that is relative to some other node.

Variants

Match the exact dimension of the other node.

Match the dimension but pad it with the given Scalar.

Multiply the dimension of the other relative node's dimension.

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