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