Enum cursive::direction::Relative
[−]
[src]
pub enum Relative { Front, Back, }
Direction relative to an orientation.
Variants
Front
Front relative direction.
- Horizontally, this means
Left
- Vertically, this means
Up
TODO: handle right-to-left?
Back
Back relative direction.
- Horizontally, this means
Right
- Vertically, this means
Down
.
Methods
impl Relative
[src]
fn absolute(self, orientation: Orientation) -> Absolute
Returns the absolute direction in the given orientation
.
Trait Implementations
impl Debug for Relative
[src]
impl Clone for Relative
[src]
fn clone(&self) -> Relative
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more