Skip to main content

ExprValue

Trait ExprValue 

Source
pub trait ExprValue: Sized + Sealed {
    const MAX: u8;
    const MIN: u8;

    // Required methods
    fn max() -> Self;
    fn min() -> Self;
}
Expand description

A trait implemented for expression values that defines a MIN value and a MAX value.

Required Associated Constants§

Source

const MAX: u8

The max value for an expression value

Source

const MIN: u8

The min value for an expression value

Required Methods§

Source

fn max() -> Self

The max value as this expression value type

Source

fn min() -> Self

The min value as this expression value type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ExprValue for DayOfMonth

Source§

const MAX: u8 = 31

Source§

const MIN: u8 = 1

Source§

impl ExprValue for DayOfMonthOffset

Source§

const MAX: u8 = 30

Source§

const MIN: u8 = 1

Source§

impl ExprValue for DayOfWeek

Source§

const MAX: u8 = 7

Source§

const MIN: u8 = 1

Source§

impl ExprValue for Hour

Source§

const MAX: u8 = 23

Source§

const MIN: u8 = 0

Source§

impl ExprValue for Minute

Source§

const MAX: u8 = 59

Source§

const MIN: u8 = 0

Source§

impl ExprValue for Month

Source§

const MAX: u8 = 12

Source§

const MIN: u8 = 1

Source§

impl ExprValue for NthDay

Source§

const MAX: u8 = 5

Source§

const MIN: u8 = 1

Source§

impl<E: ExprValue> ExprValue for Step<E>