прозрел

This commit is contained in:
GIKExe 2025-05-01 06:19:46 +03:00
parent 97b00dfc7e
commit c9974e4140
2 changed files with 13 additions and 4 deletions

View File

@ -34,3 +34,12 @@ impl Buffer {
}
}
pub trait Sas {
fn ts(&mut self);
}
impl Sas for Buffer {
fn ts(&mut self) {
self.index += 1;
}
}

View File

@ -6,11 +6,11 @@ use d::*;
use std::thread;
fn main() {
let a = Buffer::new(vec![0x01,0xFF,0x33], 0);
let b = a;
let x = a.read(1);
let x2 = a.read(1);
let mut a = Buffer::new(vec![0x01,0xFF,0x33], 0);
a.ts();
// let Ok(server) = Server::new("127.0.0.1:25565") else {
// println!("Не удалось забиндить сервер"); return;