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>

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

fn eq(&self, __arg_0: &Absolute) -> 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 Absolute
[src]

impl Clone for Absolute
[src]

fn clone(&self) -> Absolute

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 Absolute
[src]

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

Formats the value using the given formatter.