pub struct StreamDecoder<'a, I: Iterator<Item = Result<u8>>, S: StreamDecodee + 'a> { /* private fields */ }Expand description
A decoder that calls into a struct implementing the StreamDecodee trait,
similar to a SAXParser.
Implementations§
Source§impl<'a, I: Iterator<Item = Result<u8>>, S: StreamDecodee> StreamDecoder<'a, I, S>
impl<'a, I: Iterator<Item = Result<u8>>, S: StreamDecodee> StreamDecoder<'a, I, S>
pub fn new<R: Into<ByteReader<I>>>(reader: R, decodee: &'a mut S) -> Self
Sourcepub fn decode(&mut self) -> Result<(), DecodeError>
pub fn decode(&mut self) -> Result<(), DecodeError>
Decode an asn1 element.
Auto Trait Implementations§
impl<'a, I, S> Freeze for StreamDecoder<'a, I, S>where
I: Freeze,
impl<'a, I, S> RefUnwindSafe for StreamDecoder<'a, I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, I, S> Send for StreamDecoder<'a, I, S>
impl<'a, I, S> Sync for StreamDecoder<'a, I, S>
impl<'a, I, S> Unpin for StreamDecoder<'a, I, S>where
I: Unpin,
impl<'a, I, S> !UnwindSafe for StreamDecoder<'a, I, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more