pub struct PythonInfo {
pub current: Version,
pub latest: Option<Version>,
}Expand description
Information about the Python environment
Fields§
§current: VersionCurrent Python version
latest: Option<Version>Latest available Python version (from python.org)
Implementations§
Source§impl PythonInfo
impl PythonInfo
Sourcepub fn has_update(&self) -> bool
pub fn has_update(&self) -> bool
Check if an update is available
Trait Implementations§
Source§impl Clone for PythonInfo
impl Clone for PythonInfo
Source§fn clone(&self) -> PythonInfo
fn clone(&self) -> PythonInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PythonInfo
impl RefUnwindSafe for PythonInfo
impl Send for PythonInfo
impl Sync for PythonInfo
impl Unpin for PythonInfo
impl UnwindSafe for PythonInfo
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