pub struct PythonVirtualEnv { /* private fields */ }Expand description
Python virtual environment metadata.
Implementations§
Source§impl PythonVirtualEnv
impl PythonVirtualEnv
Sourcepub const fn new(
name: PythonVirtualEnvName,
kind: PythonVirtualEnvKind,
) -> PythonVirtualEnv
pub const fn new( name: PythonVirtualEnvName, kind: PythonVirtualEnvKind, ) -> PythonVirtualEnv
Creates virtual environment metadata.
Sourcepub fn with_path(self, path: PythonVirtualEnvPath) -> PythonVirtualEnv
pub fn with_path(self, path: PythonVirtualEnvPath) -> PythonVirtualEnv
Adds path metadata.
Sourcepub const fn name(&self) -> &PythonVirtualEnvName
pub const fn name(&self) -> &PythonVirtualEnvName
Returns the environment name.
Sourcepub const fn kind(&self) -> PythonVirtualEnvKind
pub const fn kind(&self) -> PythonVirtualEnvKind
Returns the environment kind.
Sourcepub const fn path(&self) -> Option<&PythonVirtualEnvPath>
pub const fn path(&self) -> Option<&PythonVirtualEnvPath>
Returns path metadata when present.
Trait Implementations§
Source§impl Clone for PythonVirtualEnv
impl Clone for PythonVirtualEnv
Source§fn clone(&self) -> PythonVirtualEnv
fn clone(&self) -> PythonVirtualEnv
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 PythonVirtualEnv
impl Debug for PythonVirtualEnv
Source§impl PartialEq for PythonVirtualEnv
impl PartialEq for PythonVirtualEnv
Source§fn eq(&self, other: &PythonVirtualEnv) -> bool
fn eq(&self, other: &PythonVirtualEnv) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PythonVirtualEnv
impl StructuralPartialEq for PythonVirtualEnv
Auto Trait Implementations§
impl Freeze for PythonVirtualEnv
impl RefUnwindSafe for PythonVirtualEnv
impl Send for PythonVirtualEnv
impl Sync for PythonVirtualEnv
impl Unpin for PythonVirtualEnv
impl UnsafeUnpin for PythonVirtualEnv
impl UnwindSafe for PythonVirtualEnv
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