pub struct PyProjectToolSection(/* private fields */);Implementations§
Source§impl PyProjectToolSection
impl PyProjectToolSection
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 PyProjectToolSection
impl Clone for PyProjectToolSection
Source§fn clone(&self) -> PyProjectToolSection
fn clone(&self) -> PyProjectToolSection
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 PyProjectToolSection
impl Debug for PyProjectToolSection
Source§impl Display for PyProjectToolSection
impl Display for PyProjectToolSection
Source§impl FromStr for PyProjectToolSection
impl FromStr for PyProjectToolSection
Source§impl Hash for PyProjectToolSection
impl Hash for PyProjectToolSection
Source§impl Ord for PyProjectToolSection
impl Ord for PyProjectToolSection
Source§fn cmp(&self, other: &PyProjectToolSection) -> Ordering
fn cmp(&self, other: &PyProjectToolSection) -> 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 PyProjectToolSection
impl PartialEq for PyProjectToolSection
Source§fn eq(&self, other: &PyProjectToolSection) -> bool
fn eq(&self, other: &PyProjectToolSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PyProjectToolSection
impl PartialOrd for PyProjectToolSection
Source§impl TryFrom<&str> for PyProjectToolSection
impl TryFrom<&str> for PyProjectToolSection
impl Eq for PyProjectToolSection
impl StructuralPartialEq for PyProjectToolSection
Auto Trait Implementations§
impl Freeze for PyProjectToolSection
impl RefUnwindSafe for PyProjectToolSection
impl Send for PyProjectToolSection
impl Sync for PyProjectToolSection
impl Unpin for PyProjectToolSection
impl UnsafeUnpin for PyProjectToolSection
impl UnwindSafe for PyProjectToolSection
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