pub trait Castable: 'static {
    fn name() -> &'static str;
    fn collect_casts(casts: &mut Casts)
    where
        Self: Sized
; }
Expand description

Types implementing this trait know how to cast themselves into trait objects for some of the traits that they implement.

This trait should only be implemented via the impl_castable! macro.

Required Methods

Returns the name of this type.

Populates the given Casts object with all of the known ways to cast out of this type.

Implementors