Enum cursive::direction::Absolute
[−]
[src]
pub enum Absolute { Left, Up, Right, Down, None, }
Absolute direction (up, down, left, right).
Variants
Left
Left
Up
Up
Right
Right
Down
Down
None
No real direction.
Used when the "direction" is accross layers for instance.
Methods
impl Absolute
[src]
fn relative(self, orientation: Orientation) -> Option<Relative>
[src]
Returns the relative direction for the given orientation.
Returns None
when the direction does not apply to the given
orientation (ex: Left
and Vertical
).
Trait Implementations
impl Debug for Absolute
[src]
impl Clone for Absolute
[src]
fn clone(&self) -> Absolute
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more