Struct data::breed::ParentRequirement
source · pub struct ParentRequirement {
pub parent: Parent,
pub min_plus: u8,
}
Expand description
A parent in a breed formula, with some extra requirements.
Fields§
§parent: Parent
The parent in the breed formula
min_plus: u8
The minimal +level of this parent. Usually this is just 0. But for some formulae (e.g. Slime + Slime = KingSlime) this is non-zero.
Trait Implementations§
source§impl Clone for ParentRequirement
impl Clone for ParentRequirement
source§fn clone(&self) -> ParentRequirement
fn clone(&self) -> ParentRequirement
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ParentRequirement
impl Send for ParentRequirement
impl Sync for ParentRequirement
impl Unpin for ParentRequirement
impl UnwindSafe for ParentRequirement
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