Enum nannou::draw::properties::spatial::position::Relative [−][src]
pub enum Relative<S = DefaultScalar> { 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
Scalar(S)
A relative scalar distance.
Align(Align<S>)
Aligned to either the Start
, Middle
or End
.
Direction(Direction, S)
A distance as a Scalar
value over the given Direction
.
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>