Struct facti_lib::version::FactorioVersion
source · pub struct FactorioVersion {
pub major: u64,
pub minor: u64,
/* private fields */
}Fields§
§major: u64§minor: u64Implementations§
Trait Implementations§
source§impl Clone for FactorioVersion
impl Clone for FactorioVersion
source§fn clone(&self) -> FactorioVersion
fn clone(&self) -> FactorioVersion
Returns a copy 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 moresource§impl Debug for FactorioVersion
impl Debug for FactorioVersion
source§impl Default for FactorioVersion
impl Default for FactorioVersion
source§impl<'de> Deserialize<'de> for FactorioVersion
impl<'de> Deserialize<'de> for FactorioVersion
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for FactorioVersion
impl Display for FactorioVersion
source§impl FromStr for FactorioVersion
impl FromStr for FactorioVersion
source§impl Hash for FactorioVersion
impl Hash for FactorioVersion
source§impl Ord for FactorioVersion
impl Ord for FactorioVersion
source§fn cmp(&self, other: &FactorioVersion) -> Ordering
fn cmp(&self, other: &FactorioVersion) -> Ordering
1.21.0 · 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<FactorioVersion> for FactorioVersion
impl PartialEq<FactorioVersion> for FactorioVersion
source§fn eq(&self, other: &FactorioVersion) -> bool
fn eq(&self, other: &FactorioVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<FactorioVersion> for FactorioVersion
impl PartialOrd<FactorioVersion> for FactorioVersion
source§fn partial_cmp(&self, other: &FactorioVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &FactorioVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for FactorioVersion
impl Serialize for FactorioVersion
impl Copy for FactorioVersion
impl Eq for FactorioVersion
impl StructuralEq for FactorioVersion
impl StructuralPartialEq for FactorioVersion
Auto Trait Implementations§
impl RefUnwindSafe for FactorioVersion
impl Send for FactorioVersion
impl Sync for FactorioVersion
impl Unpin for FactorioVersion
impl UnwindSafe for FactorioVersion
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