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
Matching
Match the exact dimension of the other node.
Padded(S)
Match the dimension but pad it with the given Scalar.
Scaled(S)
Multiply the dimension of the other relative node's dimension.
Trait Implementations
impl<S: Copy> Copy for Relative<S>
[src]
impl<S: Copy> Copy for Relative<S>
impl<S: Clone> Clone for Relative<S>
[src]
impl<S: Clone> Clone for Relative<S>
fn clone(&self) -> Relative<S>
[src]
fn clone(&self) -> Relative<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Relative<S>
[src]
impl<S: Debug> Debug for Relative<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for Relative<S>
[src]
impl<S: PartialEq> PartialEq for Relative<S>