paralegal_flow::utils

Trait GenericArgExt

Source
pub trait GenericArgExt<'tcx> {
    // Required method
    fn as_type(&self) -> Option<Ty<'tcx>>;
}

Required Methods§

Source

fn as_type(&self) -> Option<Ty<'tcx>>

Generic arguments can reference non-type things (in particular constants and lifetimes). If it is a type, then this extracts that type, otherwise None.

Implementations on Foreign Types§

Source§

impl<'tcx> GenericArgExt<'tcx> for GenericArg<'tcx>

Source§

fn as_type(&self) -> Option<Ty<'tcx>>

Implementors§