additional stream tools

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-09-30 06:46:54 +00:00 committed by strawberry
parent a8d5cf9651
commit 6b80361c31
10 changed files with 242 additions and 46 deletions

View file

@ -0,0 +1,10 @@
use super::Result;
pub trait IntoIsOk<T, E> {
fn into_is_ok(self) -> bool;
}
impl<T, E> IntoIsOk<T, E> for Result<T, E> {
#[inline]
fn into_is_ok(self) -> bool { self.is_ok() }
}