pub enum SortError {
Show 14 variants
Disorder {
file: OsString,
line_number: usize,
line: String,
silent: bool,
},
OpenFailed {
path: PathBuf,
error: Error,
},
ParseKeyError {
key: String,
msg: String,
},
ReadFailed {
path: PathBuf,
error: Error,
},
OpenTmpFileFailed {
error: Error,
},
CompressProgExecutionFailed {
prog: String,
error: Error,
},
CompressProgTerminatedAbnormally {
prog: String,
},
TmpFileCreationFailed {
path: PathBuf,
},
FileOperandsCombined {
file: PathBuf,
},
Uft8Error {
error: Utf8Error,
},
MultipleOutputFiles,
MinusInStdIn,
EmptyInputFile {
file: PathBuf,
},
ZeroLengthFileName {
file: PathBuf,
line_num: usize,
},
}Variants§
Disorder
OpenFailed
ParseKeyError
ReadFailed
OpenTmpFileFailed
CompressProgExecutionFailed
CompressProgTerminatedAbnormally
TmpFileCreationFailed
FileOperandsCombined
Uft8Error
MultipleOutputFiles
MinusInStdIn
EmptyInputFile
ZeroLengthFileName
Trait Implementations§
Source§impl Error for SortError
impl Error for SortError
1.30.0§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§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 SortError
impl !RefUnwindSafe for SortError
impl Send for SortError
impl Sync for SortError
impl Unpin for SortError
impl !UnwindSafe for SortError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more