Enum diny::backend::DecodeStatus [−][src]
pub enum DecodeStatus<Dta, Dec> {
Ready(Dta),
Pending(Dec),
}
Expand description
Variants
The operation has successfully completed decoding the data.
Implementations
pub fn bimap<Fdta, Gdec, F, G>(self, f: F, g: G) -> DecodeStatus<Fdta, Gdec> where
F: FnOnce(Dta) -> Fdta,
G: FnOnce(Dec) -> Gdec,
pub fn bimap<Fdta, Gdec, F, G>(self, f: F, g: G) -> DecodeStatus<Fdta, Gdec> where
F: FnOnce(Dta) -> Fdta,
G: FnOnce(Dec) -> Gdec,
Convenience method for functorially mapping either variant to a new status.