Skip to main content

TryInto

Trait TryInto 

Source
pub unsafe trait TryInto<T>: Sized + TryInto<T> { }
Expand description

This trait is empty declaration of ::core::convert::TryInto to be used with newer_type::implement.

§Example

#[implement(newer_type_std::convert::TryInto<u8>)]
struct MyStruct {
    slot: i32
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§