Struct factorio_mod_api::api::ModDependency
source · pub struct ModDependency {
pub flavor: ModDependencyFlavor,
pub name: String,
pub comparator: Option<Comparator>,
}
Expand description
A dependency specification between mods.
Fields
flavor: ModDependencyFlavor
name: String
comparator: Option<Comparator>
Implementations
sourceimpl ModDependency
impl ModDependency
pub fn unversioned(name: String) -> ModDependency
sourceimpl ModDependency
impl ModDependency
pub fn is_required(&self) -> bool
Trait Implementations
sourceimpl Clone for ModDependency
impl Clone for ModDependency
sourcefn clone(&self) -> ModDependency
fn clone(&self) -> ModDependency
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModDependency
impl Debug for ModDependency
sourceimpl<'de> Deserialize<'de> for ModDependency
impl<'de> Deserialize<'de> for ModDependency
sourcefn 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
sourceimpl Display for ModDependency
impl Display for ModDependency
sourceimpl PartialEq<ModDependency> for ModDependency
impl PartialEq<ModDependency> for ModDependency
sourcefn eq(&self, other: &ModDependency) -> bool
fn eq(&self, other: &ModDependency) -> bool
sourceimpl TryFrom<&str> for ModDependency
impl TryFrom<&str> for ModDependency
impl Eq for ModDependency
impl StructuralEq for ModDependency
impl StructuralPartialEq for ModDependency
Auto Trait Implementations
impl RefUnwindSafe for ModDependency
impl Send for ModDependency
impl Sync for ModDependency
impl Unpin for ModDependency
impl UnwindSafe for ModDependency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.