pub trait AndThen<B>: Higher {
// Required method
fn and_then<F>(self, f: F) -> Self::Target<B>
where F: FnMut(Self::Param) -> Self::Target<B>;
}
Expand description
Gives access to the and_then method. This trait is needed to implement ApN. The motivation
for not using FlatMap is that there are situations where and_then
can be implemented but
not FlatMap::flat_map, e.g. Validated.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.