Enum diagnostics_data::SeverityError
source · pub enum SeverityError {
Invalid {
provided: c_int,
},
}
Expand description
Error that can happen when converting an integer to a LegacySeverity
.
Variants§
Invalid
The number provided doesn’t have a direct mapping to a LegacySeverity
.
Trait Implementations§
source§impl Clone for SeverityError
impl Clone for SeverityError
source§fn clone(&self) -> SeverityError
fn clone(&self) -> SeverityError
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 moresource§impl Debug for SeverityError
impl Debug for SeverityError
source§impl Display for SeverityError
impl Display for SeverityError
source§impl Error for SeverityError
impl Error for SeverityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for SeverityError
impl PartialEq for SeverityError
source§fn eq(&self, other: &SeverityError) -> bool
fn eq(&self, other: &SeverityError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SeverityError
impl StructuralPartialEq for SeverityError
Auto Trait Implementations§
impl RefUnwindSafe for SeverityError
impl Send for SeverityError
impl Sync for SeverityError
impl Unpin for SeverityError
impl UnwindSafe for SeverityError
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