Skip to main content

InitReturn

Trait InitReturn 

Source
pub trait InitReturn {
    // Required method
    fn into_init_bool(self) -> bool;
}
Expand description

A trait representing types that can be used as the return value for a #[panda::init] function

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl InitReturn for ()

Source§

impl InitReturn for bool

Source§

impl InitReturn for i32

Source§

impl<I: InitReturn, E: Debug> InitReturn for Result<I, E>

Implementors§