pub struct SourceInfoError {
pub error_type: SourceInfoErrorType,
pub line: Option<usize>,
pub message: String,
}
Expand description
Errors that may occur when converting SourceInfoContent
into a SourceInfoV1
.
The severity of an error is defined by its SourceInfoErrorType
, which may range from linting
errors, deprecation warnings to hard unrecoverable errors.
Fields§
§error_type: SourceInfoErrorType
§line: Option<usize>
§message: String
Trait Implementations§
Source§impl Clone for SourceInfoError
impl Clone for SourceInfoError
Source§fn clone(&self) -> SourceInfoError
fn clone(&self) -> SourceInfoError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SourceInfoError
impl RefUnwindSafe for SourceInfoError
impl Send for SourceInfoError
impl Sync for SourceInfoError
impl Unpin for SourceInfoError
impl UnwindSafe for SourceInfoError
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