pub enum SuggestionError {
PatchIntoBytesFailed {
file_name: String,
source: Error,
},
PatchIntoStringFailed {
file_name: String,
source: FromUtf8Error,
},
GetHunkFailed {
hunk_id: usize,
file_name: String,
source: Error,
},
GetHunkLineFailed {
line_index: usize,
hunk_id: usize,
file_name: String,
source: Error,
},
HunkLineIntoStringFailed {
line_index: usize,
hunk_id: usize,
file_name: String,
source: FromUtf8Error,
},
}Variants§
PatchIntoBytesFailed
PatchIntoStringFailed
GetHunkFailed
GetHunkLineFailed
HunkLineIntoStringFailed
Trait Implementations§
Source§impl Debug for SuggestionError
impl Debug for SuggestionError
Source§impl Display for SuggestionError
impl Display for SuggestionError
Source§impl Error for SuggestionError
impl Error for SuggestionError
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<SuggestionError> for FileObjError
impl From<SuggestionError> for FileObjError
Source§fn from(source: SuggestionError) -> Self
fn from(source: SuggestionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SuggestionError
impl RefUnwindSafe for SuggestionError
impl Send for SuggestionError
impl Sync for SuggestionError
impl Unpin for SuggestionError
impl UnsafeUnpin for SuggestionError
impl UnwindSafe for SuggestionError
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