#[non_exhaustive]pub enum PathspecFromFileParseError {
InvalidUtf8InNulRecord,
QuotedLineInNulMode {
line: String,
},
InvalidCStyleQuoting {
line: String,
},
InvalidEscapeAtEnd,
TruncatedOctalEscape,
InvalidOctalBytes,
InvalidOctalValue,
InvalidEscapeSequence {
escape: char,
},
InvalidUtf8InQuotedLine,
}Expand description
--pathspec-from-file / --pathspec-file-nul parse failure.
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.
InvalidUtf8InNulRecord
A NUL-separated entry is not valid UTF-8.
QuotedLineInNulMode
A NUL-terminated entry used C-style quoting (forbidden in NUL mode).
InvalidCStyleQuoting
A line-mode entry had invalid double-quote wrapping.
InvalidEscapeAtEnd
Backslash escape at end of a quoted line.
TruncatedOctalEscape
Octal escape shorter than three digits.
InvalidOctalBytes
Octal escape bytes are not valid UTF-8.
InvalidOctalValue
Octal digits do not form a valid byte value.
InvalidEscapeSequence
Unknown escape after backslash in a quoted line.
InvalidUtf8InQuotedLine
Quoted line decoded to invalid UTF-8.
Trait Implementations§
Source§impl Clone for PathspecFromFileParseError
impl Clone for PathspecFromFileParseError
Source§impl Debug for PathspecFromFileParseError
impl Debug for PathspecFromFileParseError
Source§impl Display for PathspecFromFileParseError
impl Display for PathspecFromFileParseError
impl Eq for PathspecFromFileParseError
Source§impl Error for PathspecFromFileParseError
impl Error for PathspecFromFileParseError
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 From<PathspecFromFileParseError> for PathspecResolveError
impl From<PathspecFromFileParseError> for PathspecResolveError
Source§fn from(source: PathspecFromFileParseError) -> Self
fn from(source: PathspecFromFileParseError) -> Self
Converts to this type from the input type.
Source§impl From<PathspecFromFileParseError> for Error
impl From<PathspecFromFileParseError> for Error
Source§fn from(source: PathspecFromFileParseError) -> Self
fn from(source: PathspecFromFileParseError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PathspecFromFileParseError
Auto Trait Implementations§
impl Freeze for PathspecFromFileParseError
impl RefUnwindSafe for PathspecFromFileParseError
impl Send for PathspecFromFileParseError
impl Sync for PathspecFromFileParseError
impl Unpin for PathspecFromFileParseError
impl UnsafeUnpin for PathspecFromFileParseError
impl UnwindSafe for PathspecFromFileParseError
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