still just tructure

This commit is contained in:
fabolous005 2025-10-06 16:33:56 +02:00
parent eb194e8b4e
commit 95f602b0a3
5 changed files with 44 additions and 8 deletions

View File

@ -1,6 +1,9 @@
#![feature(allocator_api)]
#[allow(unused)]
mod structure;
mod sensors;
fn main() {
println!("Hello, world!");

1
src/sensors/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod sight;

24
src/sensors/sight.rs Normal file
View File

@ -0,0 +1,24 @@
use crate::structure::sensoric::Sensor;
/*
color
lines
pattern
=> structures
change rate of structures
=> movement
focus <= prediction
*/
pub struct Sight;
const SIZE: usize = 1024;
impl Sensor<SIZE> for Sight {
fn input(&self, input: [f32; SIZE]) {
todo!()
}
}

View File

@ -1,2 +1,2 @@
mod neuron;
mod sensoric;
pub mod neuron;
pub mod sensoric;

View File

@ -1,13 +1,21 @@
/*
For the first layer have a variable that determines the
stability of one mental image
*/
trait Sensor {
type Packet;
// pub trait Sensor
// where
// Self::Packet: IntoIterator,
// {
// type Packet;
//
// fn input(&self, packet: Self::Packet);
// }
fn input(&self) -> Self::Packet;
pub trait Sensor<const N: usize> {
fn input(&self, input: [f32; N]);
}