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]
impl Relative
pub fn absolute(self, orientation: Orientation) -> Absolute
[src]
pub fn absolute(self, orientation: Orientation) -> Absolute
Returns the absolute direction in the given orientation
.
Trait Implementations
impl Debug for Relative
[src]
impl Debug for Relative
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 Clone for Relative
[src]
impl Clone for Relative
fn clone(&self) -> Relative
[src]
fn clone(&self) -> Relative
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 Copy for Relative
[src]
impl Copy for Relative
impl PartialEq for Relative
[src]
impl PartialEq for Relative