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