#[non_exhaustive]pub enum PlanErrorKind {
Unclosed,
Unopened,
Nested,
EmptyStep,
UnexpectedText(String),
DanglingTimestamp,
MalformedDuration,
InvalidNumber(String),
}Expand description
The kinds of PlanError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unclosed
A ( without its ) before the end of the file.
Unopened
A ) without a matching (.
Nested
A ( inside a step. Steps are flat lists of names.
EmptyStep
A step () without an action name.
UnexpectedText(String)
Text outside parentheses that is neither whitespace, a comment, a timestamp nor a duration.
DanglingTimestamp
A timestamp (0.5:) without a step after it.
MalformedDuration
A [ without its ], or a duration that is not one number.
InvalidNumber(String)
A time or duration that is not a finite, non-negative number.
Trait Implementations§
Source§impl Clone for PlanErrorKind
impl Clone for PlanErrorKind
Source§impl Debug for PlanErrorKind
impl Debug for PlanErrorKind
impl Eq for PlanErrorKind
Source§impl PartialEq for PlanErrorKind
impl PartialEq for PlanErrorKind
impl StructuralPartialEq for PlanErrorKind
Auto Trait Implementations§
impl Forget for PlanErrorKind
impl Freeze for PlanErrorKind
impl Move for PlanErrorKind
impl RefUnwindSafe for PlanErrorKind
impl Send for PlanErrorKind
impl Sync for PlanErrorKind
impl Unpin for PlanErrorKind
impl UnsafeUnpin for PlanErrorKind
impl UnwindSafe for PlanErrorKind
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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