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