Trait Handled

Source
pub trait Handled {
    type HandleCoreType: HandleCore;

    // Provided method
    fn new_handle(serial_number: usize) -> Handle<Self> { ... }
}
Expand description

A type whose instances may be identified by handles.

Required Associated Types§

Source

type HandleCoreType: HandleCore

The type of the internal representation of our handles.

Provided Methods§

Source

fn new_handle(serial_number: usize) -> Handle<Self>

Creates handle associated with an object identified by a certain serial_number.

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<Context, Satellite> Handled for Box<dyn Fn(&mut Context, Vec<Satellite>) -> Satellite>

Implementors§