Final cleanup?
Need to spec out the process and zlib methods, but otherwise looks decentmaster
parent
79f9039c7e
commit
5c5d84a57b
|
@ -12,7 +12,7 @@ impl<'a> From<io::Error> for KaitaiError<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Result<'a, T> = std::result::Result<T, KaitaiError<'a>>;
|
pub type Result<'a, T> = std::result::Result<T, KaitaiError<'a>>;
|
||||||
|
|
||||||
pub trait KaitaiStruct<'a>
|
pub trait KaitaiStruct<'a>
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ pub trait KaitaiStruct<'a>
|
||||||
where
|
where
|
||||||
Self: Sized;
|
Self: Sized;
|
||||||
|
|
||||||
//fn read<S: KaitaiStream>(&mut self, stream: &S);
|
fn read<S: KaitaiStream>(&mut self, stream: &mut S) -> Result<'a, ()>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait KaitaiStream {
|
pub trait KaitaiStream {
|
||||||
|
|
Loading…
Reference in New Issue