pub enum VersionInfo {
None,
Present {
solver: String,
version: Version,
},
}
Expand description
Type of solver and version number
Variants§
Implementations§
Source§impl VersionInfo
impl VersionInfo
pub fn solver(&self) -> Option<&str>
pub fn version(&self) -> Option<&Version>
pub fn is_version(&self, major: u64, minor: u64, patch: u64) -> bool
pub fn is_version_minor(&self, major: u64, minor: u64) -> bool
pub fn is_ge_version(&self, major: u64, minor: u64, patch: u64) -> bool
pub fn is_le_version(&self, major: u64, minor: u64, patch: u64) -> bool
Trait Implementations§
Source§impl Debug for VersionInfo
impl Debug for VersionInfo
Source§impl Default for VersionInfo
impl Default for VersionInfo
Source§fn default() -> VersionInfo
fn default() -> VersionInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for VersionInfo
impl PartialEq for VersionInfo
impl StructuralPartialEq for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more