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