Skip to main content

GetType

Trait GetType 

Source
pub trait GetType {
    // Required method
    fn get_ty(&self) -> Result<Type, String>;
}
Expand description

Extract the underlying Type from various AST types.

Required Methods§

Source

fn get_ty(&self) -> Result<Type, String>

Gets the Type from the AST element.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl GetType for FnArg

Source§

impl GetType for GenericArgument

Implementors§