pub enum Direction {
Up,
Down,
}Expand description
Specifies whether to count Up from a starting time,
or Down from a target end time.
Variants§
Trait Implementations§
source§impl FromStr for Direction
impl FromStr for Direction
“Up” -> Up, “Down” -> Down
§type Err = InvalidDirection
type Err = InvalidDirection
The associated error which can be returned from parsing.
source§impl Ord for Direction
impl Ord for Direction
source§impl PartialEq<Direction> for Direction
impl PartialEq<Direction> for Direction
source§impl PartialOrd<Direction> for Direction
impl PartialOrd<Direction> for Direction
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more