pub struct NaiveDate(/* private fields */);Implementations§
Source§impl NaiveDate
impl NaiveDate
pub fn validate(value: &NaiveDate) -> Result<(), NaiveDateError>
Sourcepub fn unvalidated(value: NaiveDate) -> Self
Available on crate feature unvalidated only.
pub fn unvalidated(value: NaiveDate) -> Self
unvalidated only.Constructs a naive date without validation.
§Warning: IMAP conformance
The caller must ensure that value is valid according to Self::validate. Failing to do
so may create invalid/unparsable IMAP messages, or even produce unintended protocol flows.
Do not call this constructor with untrusted data.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for NaiveDate
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for NaiveDate
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<'de> Deserialize<'de> for NaiveDate
impl<'de> Deserialize<'de> for NaiveDate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoBoundedStatic for NaiveDate
Available on crate feature bounded-static only.
impl IntoBoundedStatic for NaiveDate
Available on crate feature
bounded-static only.Source§impl ToBoundedStatic for NaiveDate
Available on crate feature bounded-static only.
impl ToBoundedStatic for NaiveDate
Available on crate feature
bounded-static only.impl Eq for NaiveDate
impl StructuralPartialEq for NaiveDate
Auto Trait Implementations§
impl Freeze for NaiveDate
impl RefUnwindSafe for NaiveDate
impl Send for NaiveDate
impl Sync for NaiveDate
impl Unpin for NaiveDate
impl UnwindSafe for NaiveDate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more