Files
tuwunel/src/core/utils/math/expect_into.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
195 B
Rust
Raw Normal View History

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 {}