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