pub enum TaskRefError {
EmptyInput,
MissingColon,
MalformedTagBrackets,
InvalidName {
component: NameComponent,
source: NameError,
},
}Expand description
Error produced when parsing a TaskRef.
Each variant maps to either the grammar (REF-002..REF-006)
or to identifier inheritance (REF-001).
Variants§
EmptyInput
Violates the grammar: the input is empty.
MissingColon
Violates REF-006 for the project-reference form: the input
has no leading sigil and contains no : separator.
MalformedTagBrackets
Violates the grammar for the tag-reference form (REF-005 /
REF-006): the input begins with [ but is missing the
closing ] or the : that must follow it.
InvalidName
Violates REF-001: a name component fails the identifier
rules ID-001..ID-003.
Fields
§
component: NameComponentWhich component (project, tag, or task) failed.
Trait Implementations§
Source§impl Clone for TaskRefError
impl Clone for TaskRefError
Source§impl Debug for TaskRefError
impl Debug for TaskRefError
Source§impl Display for TaskRefError
impl Display for TaskRefError
impl Eq for TaskRefError
Source§impl Error for TaskRefError
impl Error for TaskRefError
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 ErrorCompat for TaskRefError
impl ErrorCompat for TaskRefError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl PartialEq for TaskRefError
impl PartialEq for TaskRefError
impl StructuralPartialEq for TaskRefError
Auto Trait Implementations§
impl Freeze for TaskRefError
impl RefUnwindSafe for TaskRefError
impl Send for TaskRefError
impl Sync for TaskRefError
impl Unpin for TaskRefError
impl UnsafeUnpin for TaskRefError
impl UnwindSafe for TaskRefError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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