Enum cursive::direction::Relative [−][src]
pub enum Relative {
Front,
Back,
}
Expand description
Direction relative to an orientation.
Variants
Front
Front relative direction.
- Horizontally, this means
Left
- Vertically, this means
Up
Back
Back relative direction.
- Horizontally, this means
Right
- Vertically, this means
Down
.
Implementations
Returns the absolute direction in the given orientation
.
Picks one of the two values in a tuple.
First one is self
is Front
, second one if self
is Back
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Relative
impl UnwindSafe for Relative
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.