Trait mun_runtime::ReturnTypeReflection
source · 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§
sourcefn accepts_type(ty: &Type) -> bool
fn accepts_type(ty: &Type) -> bool
Returns true if this specified type can be stored in an instance Self
.