Skip to main content

TypeExtension

Trait TypeExtension 

Source
pub trait TypeExtension {
    // Required method
    fn get_self(&self) -> &Type;

    // Provided methods
    fn as_path(&self) -> CodamaResult<&Path> { ... }
    fn single_generic_type_from_path(&self, path: &str) -> CodamaResult<&Type> { ... }
}

Required Methods§

Source

fn get_self(&self) -> &Type

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TypeExtension for Type

Source§

fn get_self(&self) -> &Type

Implementors§