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