Skip to main content

Termination

Trait Termination 

Source
pub unsafe trait Termination: Termination { }
Expand description

This trait is empty declaration of ::std::process::Termination to be used with newer_type::implement.

§Example

#[implement(newer_type_std::process::Termination)]
struct MyStruct {
    slot: std::process::ExitCode
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§