pub struct DecodeDiagnostic {
pub message: Cow<'static, str>,
pub range: TextRange,
}Expand description
A diagnostic emitted while decoding non-UTF-8 source into display text.
Fields§
§message: Cow<'static, str>§range: TextRangeTrait Implementations§
Source§impl Clone for DecodeDiagnostic
impl Clone for DecodeDiagnostic
Source§fn clone(&self) -> DecodeDiagnostic
fn clone(&self) -> DecodeDiagnostic
Returns a duplicate 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 moreSource§impl Debug for DecodeDiagnostic
impl Debug for DecodeDiagnostic
Source§impl PartialEq for DecodeDiagnostic
impl PartialEq for DecodeDiagnostic
impl Eq for DecodeDiagnostic
impl StructuralPartialEq for DecodeDiagnostic
Auto Trait Implementations§
impl Freeze for DecodeDiagnostic
impl RefUnwindSafe for DecodeDiagnostic
impl Send for DecodeDiagnostic
impl Sync for DecodeDiagnostic
impl Unpin for DecodeDiagnostic
impl UnsafeUnpin for DecodeDiagnostic
impl UnwindSafe for DecodeDiagnostic
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