Struct PyProjectDependency
pub struct PyProjectDependency(/* private fields */);Implementations§
§impl PyProjectDependency
impl PyProjectDependency
pub 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§
§impl Clone for PyProjectDependency
impl Clone for PyProjectDependency
§fn clone(&self) -> PyProjectDependency
fn clone(&self) -> PyProjectDependency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PyProjectDependency
impl Debug for PyProjectDependency
§impl Display for PyProjectDependency
impl Display for PyProjectDependency
§impl FromStr for PyProjectDependency
impl FromStr for PyProjectDependency
§type Err = PyProjectTextError
type Err = PyProjectTextError
The associated error which can be returned from parsing.
§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 more§impl Hash for PyProjectDependency
impl Hash for PyProjectDependency
§impl Ord for PyProjectDependency
impl Ord for PyProjectDependency
§fn cmp(&self, other: &PyProjectDependency) -> Ordering
fn cmp(&self, other: &PyProjectDependency) -> Ordering
1.21.0 · 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
§impl PartialEq for PyProjectDependency
impl PartialEq for PyProjectDependency
§impl PartialOrd for PyProjectDependency
impl PartialOrd for PyProjectDependency
§impl TryFrom<&str> for PyProjectDependency
impl TryFrom<&str> for PyProjectDependency
§type Error = PyProjectTextError
type Error = PyProjectTextError
The type returned in the event of a conversion error.
§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