Function try_new_scalar

Source
pub fn try_new_scalar<'tcx, B: Bridge>(
    layout: TyAndLayout<'tcx, Ty<'tcx>>,
    scalar: Scalar,
    cx: &SmirCtxt<'tcx, B>,
) -> Result<Allocation, B::Error>