pub struct MustReadFirstError {
pub file: String,
pub message: String,
}Expand description
Error type for “must read first” violations.
This error is returned when attempting to edit or write a file that has not been read in the current session.
Fields§
§file: StringThe file path that needs to be read
message: StringHuman-readable error message
Implementations§
Trait Implementations§
Source§impl Clone for MustReadFirstError
impl Clone for MustReadFirstError
Source§fn clone(&self) -> MustReadFirstError
fn clone(&self) -> MustReadFirstError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MustReadFirstError
impl Debug for MustReadFirstError
Source§impl Display for MustReadFirstError
impl Display for MustReadFirstError
Source§impl Error for MustReadFirstError
impl Error for MustReadFirstError
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()
Auto Trait Implementations§
impl Freeze for MustReadFirstError
impl RefUnwindSafe for MustReadFirstError
impl Send for MustReadFirstError
impl Sync for MustReadFirstError
impl Unpin for MustReadFirstError
impl UnsafeUnpin for MustReadFirstError
impl UnwindSafe for MustReadFirstError
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