add group inside Element struct in periodic_table crate + add ruff idea/structure for variation calculation and drawing
This commit is contained in:
parent
46e9c187e7
commit
6fedb87651
@ -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
43
src/draw/format.rs
Normal 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
0
src/draw/mod.rs
Normal 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() {
|
||||||
|
|||||||
0
src/variations/calculate.rs
Normal file
0
src/variations/calculate.rs
Normal file
0
src/variations/mod.rs
Normal file
0
src/variations/mod.rs
Normal file
Loading…
Reference in New Issue
Block a user