Skip to main content

TypeExt

Trait TypeExt 

Source
pub trait TypeExt {
    // Required methods
    fn concrete_typename(&self) -> &str;
    fn is_subtype(&self, sub: &Type) -> bool;
}

Required Methods§

Source

fn concrete_typename(&self) -> &str

Source

fn is_subtype(&self, sub: &Type) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TypeExt for Type

Source§

fn concrete_typename(&self) -> &str

Source§

fn is_subtype(&self, sub: &Type) -> bool

Implementors§