pub enum FreedomError {
TooCommunist(String),
PreCreation(String),
}Expand description
Either your date string makes no sense because it’s too Communist, or because it refers to some impossible date that is … “before” the start of Time/Freedom itself.
Variants§
Trait Implementations§
Source§impl Clone for FreedomError
impl Clone for FreedomError
Source§fn clone(&self) -> FreedomError
fn clone(&self) -> FreedomError
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 FreedomError
impl Debug for FreedomError
Source§impl Display for FreedomError
impl Display for FreedomError
Source§impl Error for FreedomError
impl Error for FreedomError
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()
Source§impl PartialEq for FreedomError
impl PartialEq for FreedomError
impl Eq for FreedomError
impl StructuralPartialEq for FreedomError
Auto Trait Implementations§
impl Freeze for FreedomError
impl RefUnwindSafe for FreedomError
impl Send for FreedomError
impl Sync for FreedomError
impl Unpin for FreedomError
impl UnwindSafe for FreedomError
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