This commit is contained in:
Bradlee Speice 2019-04-18 11:31:33 -04:00
parent 5c5d84a57b
commit 7d297b884a

View File

@ -14,8 +14,7 @@ impl<'a> From<io::Error> for KaitaiError<'a> {
pub type Result<'a, T> = std::result::Result<T, KaitaiError<'a>>;
pub trait KaitaiStruct<'a>
{
pub trait KaitaiStruct<'a> {
type Parent: KaitaiStruct<'a>;
type Root: KaitaiStruct<'a>;
@ -123,7 +122,7 @@ impl<'a> BytesReader<'a> {
bytes,
pos: 0,
bits: 0,
bits_left: 0
bits_left: 0,
}
}
}
@ -237,7 +236,13 @@ impl<'a> KaitaiStream for BytesReader<'a> {
unimplemented!()
}
fn read_bytes_term(&mut self, term: char, include: bool, consume: bool, eos_error: bool) -> io::Result<&[u8]> {
fn read_bytes_term(
&mut self,
term: char,
include: bool,
consume: bool,
eos_error: bool,
) -> io::Result<&[u8]> {
unimplemented!()
}
}