add group inside Element struct in periodic_table crate + add ruff idea/structure for variation calculation and drawing

This commit is contained in:
fabolous005 2023-11-22 21:53:18 +01:00
parent 46e9c187e7
commit 6fedb87651
6 changed files with 47 additions and 2 deletions

View File

@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
periodic_table = "0.5.0" periodic_table = { version = "0.5.0", path = "../periodic_table/" }

43
src/draw/format.rs Normal file
View File

@ -0,0 +1,43 @@
/*
CH3 CH3 CH3 CH3
| | | |
CH3---C---C---C---C---CH3
| | | |
CH3 CH3 CH3 CH3
NAME
\_ || _/
_ \||/_
\/
H--C
Location:
LU U RU
L C R
LD D RD
111
LU:
y
\_
\
x
U:
*/

0
src/draw/mod.rs Normal file
View File

View File

@ -1,9 +1,11 @@
#![allow(clippy::unnecessary_unwrap)] #![allow(clippy::unnecessary_unwrap)]
mod parse; mod parse;
mod draw;
mod variations;
use parse::parse;
use std::env; use std::env;
use parse::parse;
fn main() { fn main() {

View File

0
src/variations/mod.rs Normal file
View File