cleaned up code, condensed code and fixed a couple of things

This commit is contained in:
DJMrTV 2025-01-26 23:21:35 +01:00
commit 38bcad37bd
10 changed files with 178 additions and 95 deletions

View file

@ -1,6 +1,8 @@
use std::io;
use std::io::{Read, Seek, Write};
use std::str::Utf8Error;
use std::string::FromUtf8Error;
use md5::digest::impl_oid_carrier;
use thiserror::Error;
//ideas for the future: make a proc macro library which allows generation of struct reads
@ -16,4 +18,9 @@ pub enum Error{
type Result<T> = std::result::Result<T, Error>;
pub mod string;
pub mod any;
pub mod any;
pub trait RmcSerialize: Sized{
fn serialize(&self, writer: &mut dyn Write) -> Result<()>;
fn deserialize(reader: &mut dyn Read) -> Result<Self>;
}