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