pub struct PyProjectScript(/* private fields */);Implementations§
Source§impl PyProjectScript
impl PyProjectScript
Sourcepub fn new(input: &str) -> Result<Self, PyProjectTextError>
pub fn new(input: &str) -> Result<Self, PyProjectTextError>
Creates non-empty pyproject metadata text.
§Errors
Returns PyProjectTextError::Empty when input is empty after trimming.
Trait Implementations§
Source§impl Clone for PyProjectScript
impl Clone for PyProjectScript
Source§fn clone(&self) -> PyProjectScript
fn clone(&self) -> PyProjectScript
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 PyProjectScript
impl Debug for PyProjectScript
Source§impl Display for PyProjectScript
impl Display for PyProjectScript
Source§impl FromStr for PyProjectScript
impl FromStr for PyProjectScript
Source§impl Hash for PyProjectScript
impl Hash for PyProjectScript
Source§impl Ord for PyProjectScript
impl Ord for PyProjectScript
Source§fn cmp(&self, other: &PyProjectScript) -> Ordering
fn cmp(&self, other: &PyProjectScript) -> 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 PyProjectScript
impl PartialEq for PyProjectScript
Source§fn eq(&self, other: &PyProjectScript) -> bool
fn eq(&self, other: &PyProjectScript) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PyProjectScript
impl PartialOrd for PyProjectScript
Source§impl TryFrom<&str> for PyProjectScript
impl TryFrom<&str> for PyProjectScript
impl Eq for PyProjectScript
impl StructuralPartialEq for PyProjectScript
Auto Trait Implementations§
impl Freeze for PyProjectScript
impl RefUnwindSafe for PyProjectScript
impl Send for PyProjectScript
impl Sync for PyProjectScript
impl Unpin for PyProjectScript
impl UnsafeUnpin for PyProjectScript
impl UnwindSafe for PyProjectScript
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