pub struct CveReference(/* private fields */);Expand description
A lightweight CVE reference URL or label.
Implementations§
Source§impl CveReference
impl CveReference
Sourcepub fn new(input: impl AsRef<str>) -> Result<CveReference, CveTextError>
pub fn new(input: impl AsRef<str>) -> Result<CveReference, CveTextError>
Creates a non-empty CVE reference label.
Trait Implementations§
Source§impl Clone for CveReference
impl Clone for CveReference
Source§fn clone(&self) -> CveReference
fn clone(&self) -> CveReference
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 CveReference
impl Debug for CveReference
Source§impl Display for CveReference
impl Display for CveReference
Source§impl Hash for CveReference
impl Hash for CveReference
Source§impl Ord for CveReference
impl Ord for CveReference
Source§fn cmp(&self, other: &CveReference) -> Ordering
fn cmp(&self, other: &CveReference) -> 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 CveReference
impl PartialEq for CveReference
Source§fn eq(&self, other: &CveReference) -> bool
fn eq(&self, other: &CveReference) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CveReference
impl PartialOrd for CveReference
impl Eq for CveReference
impl StructuralPartialEq for CveReference
Auto Trait Implementations§
impl Freeze for CveReference
impl RefUnwindSafe for CveReference
impl Send for CveReference
impl Sync for CveReference
impl Unpin for CveReference
impl UnsafeUnpin for CveReference
impl UnwindSafe for CveReference
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