[−][src]Struct bytecodec::combinator::AndThen
Combinator for conditional decoding.
If the first item is successfully decoded,
it will start decoding the second item by using the decoder returned by f
function.
This is created by calling DecodeExt::and_then
method.
Trait Implementations
impl<D0: Debug, D1: Debug, F: Debug> Debug for AndThen<D0, D1, F>
[src]
impl<D0, D1, F> Decode for AndThen<D0, D1, F> where
D0: Decode,
D1: Decode,
F: Fn(D0::Item) -> D1,
[src]
D0: Decode,
D1: Decode,
F: Fn(D0::Item) -> D1,
Auto Trait Implementations
impl<D0, D1, F> RefUnwindSafe for AndThen<D0, D1, F> where
D0: RefUnwindSafe,
D1: RefUnwindSafe,
F: RefUnwindSafe,
D0: RefUnwindSafe,
D1: RefUnwindSafe,
F: RefUnwindSafe,
impl<D0, D1, F> Send for AndThen<D0, D1, F> where
D0: Send,
D1: Send,
F: Send,
D0: Send,
D1: Send,
F: Send,
impl<D0, D1, F> Sync for AndThen<D0, D1, F> where
D0: Sync,
D1: Sync,
F: Sync,
D0: Sync,
D1: Sync,
F: Sync,
impl<D0, D1, F> Unpin for AndThen<D0, D1, F> where
D0: Unpin,
D1: Unpin,
F: Unpin,
D0: Unpin,
D1: Unpin,
F: Unpin,
impl<D0, D1, F> UnwindSafe for AndThen<D0, D1, F> where
D0: UnwindSafe,
D1: UnwindSafe,
F: UnwindSafe,
D0: UnwindSafe,
D1: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IoDecodeExt for T where
T: Decode,
[src]
T: Decode,
fn decode_from_read_buf<B>(&mut self, buf: &mut ReadBuf<B>) -> Result<()> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn decode_exact<R: Read>(&mut self, reader: R) -> Result<Self::Item>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,