mirror of
https://github.com/bspeice/kaitai_rust
synced 2024-11-22 05:48:12 -05:00
Final cleanup?
Need to spec out the process and zlib methods, but otherwise looks decent
This commit is contained in:
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
Block a user