Enum cronparse::interval::Interval [] [src]

pub enum Interval<T: Limited> {
    Value(T),
    Range(T, T, u8),
    Full(u8),
}

Variants

Value
Range
Full

Methods

impl<T> Interval<T> where T: Limited

fn new(val: T) -> Interval<T>

fn full_step(step: u8) -> Interval<T>

fn full() -> Interval<T>

fn from_range(from: T, to: T) -> Interval<T>

fn from_range_step(from: T, to: T, step: u8) -> Interval<T>

fn iter(&self) -> IntervalIter<T>

Trait Implementations

impl<T> FromStr for Interval<T> where T: Limited, T: FromStr, IntervalParseError: From<T::Err>

type Err = IntervalParseError

fn from_str(s: &str) -> Result<Interval<T>, IntervalParseError>

impl<T: Limited + Display> Display for Interval<T>

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

Derived Implementations

impl<T: PartialEq + Limited> PartialEq for Interval<T>

fn eq(&self, __arg_0: &Interval<T>) -> bool

fn ne(&self, __arg_0: &Interval<T>) -> bool

impl<T: Debug + Limited> Debug for Interval<T>

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