From eb194e8b4e21220deed91f3fbac09247f2c763db Mon Sep 17 00:00:00 2001 From: fabolous005 Date: Sat, 4 Oct 2025 10:06:28 +0200 Subject: [PATCH] some files --- src/main.rs | 4 ++++ src/structure/mod.rs | 2 ++ src/structure/neuron.rs | 20 ++++++++++++++++++++ src/structure/sensoric.rs | 13 +++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 src/structure/mod.rs create mode 100644 src/structure/neuron.rs create mode 100644 src/structure/sensoric.rs diff --git a/src/main.rs b/src/main.rs index e7a11a9..c6d95f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,7 @@ +#![feature(allocator_api)] + +mod structure; + fn main() { println!("Hello, world!"); } diff --git a/src/structure/mod.rs b/src/structure/mod.rs new file mode 100644 index 0000000..3f55b1a --- /dev/null +++ b/src/structure/mod.rs @@ -0,0 +1,2 @@ +mod neuron; +mod sensoric; diff --git a/src/structure/neuron.rs b/src/structure/neuron.rs new file mode 100644 index 0000000..b75f0b6 --- /dev/null +++ b/src/structure/neuron.rs @@ -0,0 +1,20 @@ +/* + +Neuron: +condition of beeing fired +duration +neurons that already have been fired +neurons that haven't been fired +connection strenght + +System: +neurons +connections +need for new neurons + +Brain: +systems + +*/ + + diff --git a/src/structure/sensoric.rs b/src/structure/sensoric.rs new file mode 100644 index 0000000..56acf1b --- /dev/null +++ b/src/structure/sensoric.rs @@ -0,0 +1,13 @@ +/* + + + +*/ + +trait Sensor { + type Packet; + + fn input(&self) -> Self::Packet; +} + +