pub trait ReturnTypeReflection: Sized {
    fn accepts_type(ty: &Type) -> bool;
    fn type_hint() -> &'static str;
}
Expand description

A type to emulate dynamic typing across compilation units for static types.

Required Methods§

Returns true if this specified type can be stored in an instance Self.

Returns a type hint to indicate the name of this type

Implementations on Foreign Types§

Implementors§