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