pub enum DateError {
InvalidDay(i64),
InvalidMonth(i64),
InvalidYear(i64),
InvalidFields,
}Expand description
Errors that can arise in relation to a Date
Variants§
InvalidDay(i64)
The day number is not allowed (must be 1 <= day <= 31)
InvalidMonth(i64)
The month number is not allowed (must be 1 <= day <= 12)
InvalidYear(i64)
InvalidFields
Invalid field initialisation. e.g. the day has been set without the month also being set
Trait Implementations§
Source§impl Error for DateError
impl Error for DateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DateError
impl RefUnwindSafe for DateError
impl Send for DateError
impl Sync for DateError
impl Unpin for DateError
impl UnsafeUnpin for DateError
impl UnwindSafe for DateError
Blanket Implementations§
Source§impl<T> BoolTagExprLexicalParse for Twhere
T: ToString,
impl<T> BoolTagExprLexicalParse for Twhere
T: ToString,
Source§fn lexical_parse(self) -> Result<LexicalTokenStream, ParseError>
fn lexical_parse(self) -> Result<LexicalTokenStream, ParseError>
Lexically parse value
Source§impl<T> BoolTagExprSyntaxParse<T> for Twhere
T: BoolTagExprLexicalParse,
impl<T> BoolTagExprSyntaxParse<T> for Twhere
T: BoolTagExprLexicalParse,
Source§fn syntax_parse(self) -> Result<BoolTagExpr, ParseError>
fn syntax_parse(self) -> Result<BoolTagExpr, ParseError>
Lexically and then syntactically parse the value into a boolean
expression tree
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