cairo_lang_utils::casts

Trait IntoOrPanic

Source
pub trait IntoOrPanic:
    Sized
    + Copy
    + Debug {
    // Provided method
    fn into_or_panic<T>(self) -> T
       where T: TryFrom<Self> + Debug,
             <T as TryFrom<Self>>::Error: Debug { ... }
}

Provided Methods§

Source

fn into_or_panic<T>(self) -> T
where T: TryFrom<Self> + Debug, <T as TryFrom<Self>>::Error: Debug,

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.

Implementations on Foreign Types§

Source§

impl IntoOrPanic for i16

Source§

impl IntoOrPanic for i32

Source§

impl IntoOrPanic for i64

Source§

impl IntoOrPanic for isize

Source§

impl IntoOrPanic for u16

Source§

impl IntoOrPanic for u32

Source§

impl IntoOrPanic for u64

Source§

impl IntoOrPanic for usize

Implementors§