get submodules to work
This commit is contained in:
+13
@@ -7,6 +7,17 @@ mod variations;
|
||||
use std::env;
|
||||
use parse::parse;
|
||||
|
||||
use periodic_table::Element;
|
||||
|
||||
use crate::variations::calculate::get_variations;
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ElementNr<'a> {
|
||||
element : &'a Element,
|
||||
nr : u32
|
||||
}
|
||||
|
||||
|
||||
fn main() {
|
||||
let mut args = vec![];
|
||||
@@ -18,4 +29,6 @@ fn main() {
|
||||
println!("{:#?}", elements);
|
||||
println!("{}", elements.len());
|
||||
// TODO: determine element group of each element
|
||||
|
||||
let _variations = get_variations(elements);
|
||||
}
|
||||
|
||||
+1
-5
@@ -1,10 +1,6 @@
|
||||
use periodic_table::Element;
|
||||
use crate::ElementNr;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ElementNr<'a> {
|
||||
element : &'a Element,
|
||||
nr : u32
|
||||
}
|
||||
|
||||
pub fn parse(arg: &String) -> Vec<ElementNr<'static>> {
|
||||
let mut char_before: Option<char> = None;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
use periodic_table::Element;
|
||||
|
||||
use crate::ElementNr;
|
||||
|
||||
pub struct Variation {
|
||||
longest: Element
|
||||
}
|
||||
|
||||
pub fn get_variations(elements: Vec<ElementNr>) -> Vec<Variation> {
|
||||
let mut variations: Vec<Variation> = vec![];
|
||||
|
||||
variations
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
pub mod calculate;
|
||||
|
||||
Reference in New Issue
Block a user