Enum cursive::direction::Relative [] [src]

pub enum Relative {
    Front,
    Back,
}

Direction relative to an orientation.

Variants

Front relative direction.

  • Horizontally, this means Left
  • Vertically, this means Up

TODO: handle right-to-left?

Back relative direction.

  • Horizontally, this means Right
  • Vertically, this means Down.

Methods

impl Relative
[src]

[src]

Returns the absolute direction in the given orientation.

Trait Implementations

impl Debug for Relative
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Relative
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Relative
[src]

impl PartialEq for Relative
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Relative

impl Sync for Relative