[−][src]Struct liquid_value::Date
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]
fn year(&self) -> i32
[src]
fn month(&self) -> u32
[src]
fn month0(&self) -> u32
[src]
fn day(&self) -> u32
[src]
fn day0(&self) -> u32
[src]
fn ordinal(&self) -> u32
[src]
fn ordinal0(&self) -> u32
[src]
fn weekday(&self) -> Weekday
[src]
fn iso_week(&self) -> IsoWeek
[src]
fn with_year(&self, year: i32) -> Option<Self>
[src]
fn with_month(&self, month: u32) -> Option<Self>
[src]
fn with_month0(&self, month0: u32) -> Option<Self>
[src]
fn with_day(&self, day: u32) -> Option<Self>
[src]
fn with_day0(&self, day0: u32) -> Option<Self>
[src]
fn with_ordinal(&self, ordinal: u32) -> Option<Self>
[src]
fn with_ordinal0(&self, ordinal0: u32) -> Option<Self>
[src]
fn year_ce(&self) -> (bool, u32)
[src]
fn num_days_from_ce(&self) -> i32
[src]
impl Debug for Date
[src]
impl<'de> Deserialize<'de> for Date
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Date
[src]
impl Eq for Date
[src]
impl<'s> From<Date> for ScalarCow<'s>
[src]
impl Hash for Date
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Date
[src]
fn cmp(&self, other: &Date) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &Date) -> Option<Ordering>
[src]
fn lt(&self, other: &Date) -> bool
[src]
fn le(&self, other: &Date) -> bool
[src]
fn gt(&self, other: &Date) -> bool
[src]
fn ge(&self, other: &Date) -> bool
[src]
impl<'s> PartialOrd<Date> for ScalarCow<'s>
[src]
fn partial_cmp(&self, other: &Date) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Date
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Date
[src]
impl StructuralPartialEq for Date
[src]
impl ValueView for Date
[src]
fn as_debug(&self) -> &dyn Debug
[src]
fn render(&self) -> DisplayCow
[src]
fn source(&self) -> DisplayCow
[src]
fn type_name(&self) -> &'static str
[src]
fn query_state(&self, state: State) -> bool
[src]
fn to_kstr(&self) -> KStringCow
[src]
fn to_value(&self) -> Value
[src]
fn as_scalar(&self) -> Option<ScalarCow>
[src]
fn is_scalar(&self) -> bool
[src]
fn as_array(&self) -> Option<&dyn ArrayView>
[src]
fn is_array(&self) -> bool
[src]
fn as_object(&self) -> Option<&dyn ObjectView>
[src]
fn is_object(&self) -> bool
[src]
fn as_state(&self) -> Option<State>
[src]
fn is_state(&self) -> bool
[src]
fn is_nil(&self) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,