pub struct CvssMetricValue(/* private fields */);Implementations§
Source§impl CvssMetricValue
impl CvssMetricValue
Sourcepub fn new(input: impl AsRef<str>) -> Result<CvssMetricValue, CvssTextError>
pub fn new(input: impl AsRef<str>) -> Result<CvssMetricValue, CvssTextError>
Creates non-empty CVSS text metadata.
Trait Implementations§
Source§impl Clone for CvssMetricValue
impl Clone for CvssMetricValue
Source§fn clone(&self) -> CvssMetricValue
fn clone(&self) -> CvssMetricValue
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 CvssMetricValue
impl Debug for CvssMetricValue
Source§impl Display for CvssMetricValue
impl Display for CvssMetricValue
Source§impl FromStr for CvssMetricValue
impl FromStr for CvssMetricValue
Source§type Err = CvssTextError
type Err = CvssTextError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<CvssMetricValue, <CvssMetricValue as FromStr>::Err>
fn from_str( input: &str, ) -> Result<CvssMetricValue, <CvssMetricValue as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CvssMetricValue
impl Hash for CvssMetricValue
Source§impl Ord for CvssMetricValue
impl Ord for CvssMetricValue
Source§fn cmp(&self, other: &CvssMetricValue) -> Ordering
fn cmp(&self, other: &CvssMetricValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CvssMetricValue
impl PartialEq for CvssMetricValue
Source§fn eq(&self, other: &CvssMetricValue) -> bool
fn eq(&self, other: &CvssMetricValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CvssMetricValue
impl PartialOrd for CvssMetricValue
Source§impl TryFrom<&str> for CvssMetricValue
impl TryFrom<&str> for CvssMetricValue
Source§type Error = CvssTextError
type Error = CvssTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<CvssMetricValue, <CvssMetricValue as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<CvssMetricValue, <CvssMetricValue as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for CvssMetricValue
impl StructuralPartialEq for CvssMetricValue
Auto Trait Implementations§
impl Freeze for CvssMetricValue
impl RefUnwindSafe for CvssMetricValue
impl Send for CvssMetricValue
impl Sync for CvssMetricValue
impl Unpin for CvssMetricValue
impl UnsafeUnpin for CvssMetricValue
impl UnwindSafe for CvssMetricValue
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