sipper/
straw.rs

1use crate::{Never, Sipper};
2
3/// A [`Straw`] is a [`Sipper`] that can fail.
4///
5/// This is an extension trait of [`Sipper`], for convenience.
6pub trait Straw<Output, Progress = Output, Error = Never>:
7    Sipper<Result<Output, Error>, Progress>
8{
9}
10
11impl<S, Output, Progress, Error> Straw<Output, Progress, Error> for S where
12    S: Sipper<Result<Output, Error>, Progress>
13{
14}