pub enum SelError {
InvalidSelector(String),
InvalidRegex(String),
PositionalWithStdin,
InvertWithoutRegex,
CharContextWithoutTarget,
Io {
path: String,
source: Error,
},
OutputExists(PathBuf),
}Expand description
Main error type for the sel utility.
Variants§
InvalidSelector(String)
Invalid selector syntax.
InvalidRegex(String)
Invalid regular expression.
PositionalWithStdin
Positional selectors used with stdin (unseekable).
InvertWithoutRegex
--invert-match used without --regex.
CharContextWithoutTarget
--char-context used without a target.
Io
I/O error with the offending path.
OutputExists(PathBuf)
Output file already exists and --force was not given.
Trait Implementations§
Source§impl Error for SelError
impl Error for SelError
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 SelError
impl !RefUnwindSafe for SelError
impl Send for SelError
impl Sync for SelError
impl Unpin for SelError
impl UnsafeUnpin for SelError
impl !UnwindSafe for SelError
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