pub struct PythonVirtualEnvName(/* private fields */);Expand description
Validated virtual environment name metadata.
Implementations§
Source§impl PythonVirtualEnvName
impl PythonVirtualEnvName
Sourcepub fn new(input: &str) -> Result<PythonVirtualEnvName, PythonVirtualEnvError>
pub fn new(input: &str) -> Result<PythonVirtualEnvName, PythonVirtualEnvError>
Creates virtual environment name metadata.
§Errors
Returns PythonVirtualEnvError when input is empty after trimming or contains path separators.
Trait Implementations§
Source§impl Clone for PythonVirtualEnvName
impl Clone for PythonVirtualEnvName
Source§fn clone(&self) -> PythonVirtualEnvName
fn clone(&self) -> PythonVirtualEnvName
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 PythonVirtualEnvName
impl Debug for PythonVirtualEnvName
Source§impl Display for PythonVirtualEnvName
impl Display for PythonVirtualEnvName
Source§impl FromStr for PythonVirtualEnvName
impl FromStr for PythonVirtualEnvName
Source§type Err = PythonVirtualEnvError
type Err = PythonVirtualEnvError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PythonVirtualEnvName, <PythonVirtualEnvName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonVirtualEnvName, <PythonVirtualEnvName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PythonVirtualEnvName
impl Hash for PythonVirtualEnvName
Source§impl Ord for PythonVirtualEnvName
impl Ord for PythonVirtualEnvName
Source§fn cmp(&self, other: &PythonVirtualEnvName) -> Ordering
fn cmp(&self, other: &PythonVirtualEnvName) -> 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 PythonVirtualEnvName
impl PartialEq for PythonVirtualEnvName
Source§fn eq(&self, other: &PythonVirtualEnvName) -> bool
fn eq(&self, other: &PythonVirtualEnvName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonVirtualEnvName
impl PartialOrd for PythonVirtualEnvName
Source§impl TryFrom<&str> for PythonVirtualEnvName
impl TryFrom<&str> for PythonVirtualEnvName
Source§type Error = PythonVirtualEnvError
type Error = PythonVirtualEnvError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<PythonVirtualEnvName, <PythonVirtualEnvName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<PythonVirtualEnvName, <PythonVirtualEnvName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for PythonVirtualEnvName
impl StructuralPartialEq for PythonVirtualEnvName
Auto Trait Implementations§
impl Freeze for PythonVirtualEnvName
impl RefUnwindSafe for PythonVirtualEnvName
impl Send for PythonVirtualEnvName
impl Sync for PythonVirtualEnvName
impl Unpin for PythonVirtualEnvName
impl UnsafeUnpin for PythonVirtualEnvName
impl UnwindSafe for PythonVirtualEnvName
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