Skip to main content

TyExt

Trait TyExt 

Source
pub trait TyExt {
    // Required method
    fn to_type_expr(&self) -> TypeExpr;
}
Expand description

Parser-side extension methods on Ty and BuiltinSignature that depend on the parser’s owned AST types (kept out of harn-builtin-meta so that crate stays dep-free).

Required Methods§

Source

fn to_type_expr(&self) -> TypeExpr

Materialize as a runtime TypeExpr.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl TyExt for Ty