Skip to main content

get_fn_safety

Function get_fn_safety 

Source
pub fn get_fn_safety(tcx: TyCtxt<'_>, def_id: DefId) -> Safety
Expand description

Returns the [Safety] (Safe/Unsafe) of a function’s signature.