pub enum IsExpected {
Yes,
No,
Maybe,
}Expand description
Indicates whether a date component is expected to be present in the input.
Used to guide disambiguation when the same token could be interpreted as
more than one component (e.g. 12/06 could be DD/MM or MM/DD).
Variants§
Yes
The component is definitely expected.
No
The component is definitely not expected.
Maybe
No strong expectation either way (the default).
Trait Implementations§
Source§impl Clone for IsExpected
impl Clone for IsExpected
Source§fn clone(&self) -> IsExpected
fn clone(&self) -> IsExpected
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IsExpected
impl Debug for IsExpected
Source§impl Default for IsExpected
impl Default for IsExpected
Source§fn default() -> IsExpected
fn default() -> IsExpected
Returns the “default value” for a type. Read more
Source§impl PartialEq for IsExpected
impl PartialEq for IsExpected
impl Copy for IsExpected
impl Eq for IsExpected
impl StructuralPartialEq for IsExpected
Auto Trait Implementations§
impl Freeze for IsExpected
impl RefUnwindSafe for IsExpected
impl Send for IsExpected
impl Sync for IsExpected
impl Unpin for IsExpected
impl UnsafeUnpin for IsExpected
impl UnwindSafe for IsExpected
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