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