Function option_arg_ty

Source
pub fn option_arg_ty<'tcx>(
    cx: &LateContext<'tcx>,
    ty: Ty<'tcx>,
) -> Option<Ty<'tcx>>
Expand description

Check if ty is an Option and return its argument type if it is.