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.

Implementations on Foreign Types§

Source§

impl GetType for FnArg

Source§

impl GetType for GenericArgument

Implementors§