Enum DiagnosticInputError
pub enum DiagnosticInputError {
TextLength {
field: &'static str,
bytes: usize,
min: usize,
max: usize,
},
InvalidLocation {
line: u32,
column: u32,
},
}Expand description
Detailed validation failure returned by Diagnostics::record_with_context.
Rejected input never changes retained records or eviction counters.
Variants§
Implementations§
Trait Implementations§
§impl Clone for DiagnosticInputError
impl Clone for DiagnosticInputError
§fn clone(&self) -> DiagnosticInputError
fn clone(&self) -> DiagnosticInputError
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 more§impl Debug for DiagnosticInputError
impl Debug for DiagnosticInputError
§impl Display for DiagnosticInputError
impl Display for DiagnosticInputError
§impl Error for DiagnosticInputError
impl Error for DiagnosticInputError
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()
§impl PartialEq for DiagnosticInputError
impl PartialEq for DiagnosticInputError
impl Copy for DiagnosticInputError
impl Eq for DiagnosticInputError
impl StructuralPartialEq for DiagnosticInputError
Auto Trait Implementations§
impl Freeze for DiagnosticInputError
impl RefUnwindSafe for DiagnosticInputError
impl Send for DiagnosticInputError
impl Sync for DiagnosticInputError
impl Unpin for DiagnosticInputError
impl UnwindSafe for DiagnosticInputError
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