pub enum CvssScoreError {
NonFinite,
OutOfRange,
}Expand description
Error returned when a CVSS score is invalid.
Variants§
Trait Implementations§
Source§impl Clone for CvssScoreError
impl Clone for CvssScoreError
Source§fn clone(&self) -> CvssScoreError
fn clone(&self) -> CvssScoreError
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 CvssScoreError
impl Debug for CvssScoreError
Source§impl Display for CvssScoreError
impl Display for CvssScoreError
Source§impl Error for CvssScoreError
impl Error for CvssScoreError
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()
Source§impl PartialEq for CvssScoreError
impl PartialEq for CvssScoreError
Source§fn eq(&self, other: &CvssScoreError) -> bool
fn eq(&self, other: &CvssScoreError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CvssScoreError
impl Eq for CvssScoreError
impl StructuralPartialEq for CvssScoreError
Auto Trait Implementations§
impl Freeze for CvssScoreError
impl RefUnwindSafe for CvssScoreError
impl Send for CvssScoreError
impl Sync for CvssScoreError
impl Unpin for CvssScoreError
impl UnsafeUnpin for CvssScoreError
impl UnwindSafe for CvssScoreError
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