[][src]Struct liquid_value::Date

pub struct Date { /* fields omitted */ }

Liquid's native date only type.

Methods

impl Date[src]

pub fn from_ymd(year: i32, month: u32, day: u32) -> Self[src]

Makes a new NaiveDate from the calendar date (year, month and day).

Panics on the out-of-range date, invalid month and/or day.

pub fn from_str(other: &str) -> Option<Self>[src]

Convert a str to Self

Trait Implementations

impl Clone for Date[src]

impl Copy for Date[src]

impl Datelike for Date[src]

impl Debug for Date[src]

impl<'de> Deserialize<'de> for Date[src]

impl Display for Date[src]

impl Eq for Date[src]

impl<'s> From<Date> for ScalarCow<'s>[src]

impl Hash for Date[src]

impl Ord for Date[src]

impl<'v> PartialEq<Date> for ValueCow<'v>[src]

impl PartialEq<Date> for Date[src]

impl<'s> PartialEq<Date> for ScalarCow<'s>[src]

impl PartialEq<Date> for Value[src]

impl<'v> PartialEq<Date> for ValueViewCmp<'v>[src]

impl PartialOrd<Date> for Date[src]

impl<'s> PartialOrd<Date> for ScalarCow<'s>[src]

impl Serialize for Date[src]

impl StructuralEq for Date[src]

impl StructuralPartialEq for Date[src]

impl ValueView for Date[src]

Auto Trait Implementations

impl RefUnwindSafe for Date

impl Send for Date

impl Sync for Date

impl Unpin for Date

impl UnwindSafe for Date

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.