My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/games/rstnode/src/io.rs

22 lines
346 B

//! A module that adapts the ratman layer to RstNode
use netmod_mem::MemMod;
/// A pair of exits, connected
pub struct Io {
a: MemMod,
b: MemMod,
}
impl Io {
fn new() -> Self {
Self::default()
}
}
impl Default for Io {
fn default() -> Self {
let (a, b) = MemMod::make_pair();
Self { a, b }
}
}