Files
tuwunel/src/core/utils/math/expect_into.rs
2026-03-08 15:47:37 +00:00

13 lines
195 B
Rust

pub trait ExpectInto {
#[inline]
#[must_use]
fn expect_into<Dst: TryFrom<Self>>(self) -> Dst
where
Self: Sized,
{
super::expect_into::<Dst, Self>(self)
}
}
impl<T> ExpectInto for T {}