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§