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]
pub fn absolute(self, orientation: Orientation) -> Absolute
[src]
Returns the absolute direction in the given orientation
.
Trait Implementations
impl Debug for Relative
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Relative
[src]
fn clone(&self) -> Relative
[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