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 PartialEq for Relative
[src]

fn eq(&self, __arg_0: &Relative) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Copy 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

impl Debug for Relative
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.