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]
impl Absolute
pub fn relative(self, orientation: Orientation) -> Option<Relative>
[src]
pub 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 Debug for Absolute
[src]
impl Debug for Absolute
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 Absolute
[src]
impl Clone for Absolute
fn clone(&self) -> Absolute
[src]
fn clone(&self) -> Absolute
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 Absolute
[src]
impl Copy for Absolute
impl PartialEq for Absolute
[src]
impl PartialEq for Absolute