pub(crate) struct NotUtf8 {
pub path: PathBuf,
pub source: Utf8Error,
}Expand description
A file is not UTF-8 text.
Fields§
§path: PathBufThe file.
source: Utf8ErrorThe decoding failure.
Trait Implementations§
Source§impl Error for NotUtf8
impl Error for NotUtf8
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<NotUtf8> for HolderError
impl From<NotUtf8> for HolderError
Auto Trait Implementations§
impl Freeze for NotUtf8
impl RefUnwindSafe for NotUtf8
impl Send for NotUtf8
impl Sync for NotUtf8
impl Unpin for NotUtf8
impl UnsafeUnpin for NotUtf8
impl UnwindSafe for NotUtf8
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