[−][src]Function rustc::middle::intrinsicck::unpack_option_like
fn unpack_option_like<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
ty: Ty<'tcx>
) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
If the type is Option<T>
, it will return T
, otherwise
the type itself. Works on most Option
-like types.