Lines Matching defs:NaiveDate
99 pub struct NaiveDate { struct
103 /// The minimum possible `NaiveDate` (January 1, 262145 BCE). argument
136 impl NaiveDate { impl
138 fn from_of(year: i32, of: Of) -> Option<NaiveDate> { in from_of()
148 fn from_mdf(year: i32, mdf: Mdf) -> Option<NaiveDate> { in from_mdf()
172 pub fn from_ymd(year: i32, month: u32, day: u32) -> NaiveDate { in from_ymd()
195 pub fn from_ymd_opt(year: i32, month: u32, day: u32) -> Option<NaiveDate> { in from_ymd_opt()
220 pub fn from_yo(year: i32, ordinal: u32) -> NaiveDate { in from_yo()
244 pub fn from_yo_opt(year: i32, ordinal: u32) -> Option<NaiveDate> { in from_yo_opt()
270 pub fn from_isoywd(year: i32, week: u32, weekday: Weekday) -> NaiveDate { in from_isoywd()
318 pub fn from_isoywd_opt(year: i32, week: u32, weekday: Weekday) -> Option<NaiveDate> { in from_isoywd_opt()
393 pub fn from_num_days_from_ce(days: i32) -> NaiveDate { in from_num_days_from_ce()
417 pub fn from_num_days_from_ce_opt(days: i32) -> Option<NaiveDate> { in from_num_days_from_ce_opt()
450 pub fn from_weekday_of_month(year: i32, month: u32, weekday: Weekday, n: u8) -> NaiveDate { in from_weekday_of_month()
471 ) -> Option<NaiveDate> { in from_weekday_of_month_opt()
523 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<NaiveDate> { in parse_from_str()
779 fn with_mdf(&self, mdf: Mdf) -> Option<NaiveDate> { in with_mdf()
787 fn with_of(&self, of: Of) -> Option<NaiveDate> { in with_of()
810 pub fn succ(&self) -> NaiveDate { in succ()
829 pub fn succ_opt(&self) -> Option<NaiveDate> { in succ_opt()
847 pub fn pred(&self) -> NaiveDate { in pred()
866 pub fn pred_opt(&self) -> Option<NaiveDate> { in pred_opt()
891 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_add_signed()
925 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDate> { in checked_sub_signed()
1102 impl Datelike for NaiveDate { implementation
1308 fn with_year(&self, year: i32) -> Option<NaiveDate> { in with_year()
1334 fn with_month(&self, month: u32) -> Option<NaiveDate> { in with_month()
1353 fn with_month0(&self, month0: u32) -> Option<NaiveDate> { in with_month0()
1372 fn with_day(&self, day: u32) -> Option<NaiveDate> { in with_day()
1391 fn with_day0(&self, day0: u32) -> Option<NaiveDate> { in with_day0()
1415 fn with_ordinal(&self, ordinal: u32) -> Option<NaiveDate> { in with_ordinal()
1439 fn with_ordinal0(&self, ordinal0: u32) -> Option<NaiveDate> { in with_ordinal0()
1468 impl Add<OldDuration> for NaiveDate { implementation
1472 fn add(self, rhs: OldDuration) -> NaiveDate { in add()
1477 impl AddAssign<OldDuration> for NaiveDate { implementation
1509 impl Sub<OldDuration> for NaiveDate { implementation
1513 fn sub(self, rhs: OldDuration) -> NaiveDate { in sub()
1518 impl SubAssign<OldDuration> for NaiveDate { implementation
1551 impl Sub<NaiveDate> for NaiveDate { implementation
1639 impl fmt::Debug for NaiveDate { implementation
1674 impl fmt::Display for NaiveDate { implementation
1696 impl str::FromStr for NaiveDate { implementation
1699 fn from_str(s: &str) -> ParseResult<NaiveDate> { in from_str()
1733 F: Fn(&str) -> Result<NaiveDate, E>, in test_decodable_json()
1772 impl Encodable for NaiveDate { implementation
1778 impl Decodable for NaiveDate { implementation
1779 fn decode<D: Decoder>(d: &mut D) -> Result<NaiveDate, D::Error> { in decode()
1806 impl ser::Serialize for NaiveDate { implementation
1835 fn visit_str<E>(self, value: &str) -> Result<NaiveDate, E> in visit_str()
1843 fn visit_str<E>(self, value: &str) -> Result<NaiveDate, E> in visit_str()
1851 impl<'de> de::Deserialize<'de> for NaiveDate { implementation