system.rs

This commit is contained in:
Nathan Rashleigh committed 2026-10-09 23:59:16 +11:00
1 parent ceda2cd0fb
commit b295976fa8
5 files changed
+42 -1

No files matched your search

File renamed without changes.
+8
View File
@@ -0,0 +1,8 @@
fn search() {
let facility = Faciltity::current();
let safe = facility.systems.db.sweep();
match safe {
false => freak_the_fuck_out(),
_ => (),
}
}
+1
View File
@@ -5,6 +5,7 @@ the encounter
the commute
into the system
evading the competition
chapter.rs
feierabend
the film
more people going south
+4 -1
View File
@@ -1,3 +1,6 @@
mod system;
use system::search;
fn main() {
println!("Hello, world!");
search()
}
+29
View File
@@ -0,0 +1,29 @@
use std::{thread::AccessError};
#[derive(Default)]
struct Database {}
impl Database {
fn sweep(self) -> Result<(), AccessError>{
Ok(())
}
}
#[derive(Default)]
struct Nodes {}
#[derive(Default)]
struct Systems {
db: Database,
nodes: Nodes,
}
#[derive(Default)]
struct Faciltity {
systems: Systems
}
pub fn search() {
let facility = Faciltity::default();
let safe = facility.systems.db.sweep();
unimplemented!();
}