pub fn recipe(&self, rate: Rate) -> (Vec<(Item, Rate)>, Vec<(Building, u32)>) {
        use self::Item::*;
        match self {
            CopperOre => (Vec::new(), Vec::new()),
            CopperPlate => (
                vec![(CopperPlate, rate)],
                vec![(Building::Drill, rate), (Building::Furnace, rate)],
            ),
            IronOre => (Vec::new(), Vec::new()),
            IronPlate => (
                vec![(IronOre, rate)],
                vec![(Building::Drill, rate), (Building::Furnace, rate)],
            ),
        }
    }
// Returns a list of ingredients at rates, and the buildings required.  Raw ingredients return empty vectors
Returns a list of ingredients at rates, and the buildings required.  Raw ingredients return empty vectors
Returns a list of ingredients at rates and the buildings required . Raw ingredients return empty vectors
pub fn recipe(&self, rate: Rate) -> (Vec<(Item, Rate)>, Vec<(Building, u32)>) {
        use self::Item::*;
        match self {
            CopperOre => (Vec::new(), Vec::new()),
            CopperPlate => (
                vec![(CopperPlate, rate)],
                vec![(Building::Drill, rate), (Building::Furnace, rate)],
            ),
            IronOre => (Vec::new(), Vec::new()),
            IronPlate => (
                vec![(IronOre, rate)],
                vec![(Building::Drill, rate), (Building::Furnace, rate)],
            ),
        }
    }
pub fn recipe ( & self , rate : Rate ) -> ( Vec < ( Item , Rate ) > , Vec < ( Building , u32 ) > ) { use self :: Item :: * ; match self { CopperOre => ( Vec :: new ( ) , Vec :: new ( ) ) , CopperPlate => ( vec ! [ ( CopperPlate rate ) ] , vec ! [ ( Building Drill rate ) ( Building Furnace rate ) ] , ) , IronOre => ( Vec :: new ( ) , Vec :: new ( ) ) , IronPlate => ( vec ! [ ( IronOre rate ) ] , vec ! [ ( Building Drill rate ) ( Building Furnace rate ) ] , ) , } }
Returns a list of ingredients at rates, and the buildings required.
Returns a list of ingredients at rates and the buildings required .
&self
rate
Rate
&self
rate
Rate