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.
pub fn option_arg_ty<'tcx>(
cx: &LateContext<'tcx>,
ty: Ty<'tcx>,
) -> Option<Ty<'tcx>>
Check if ty
is an Option
and return its argument type if it is.