fn optional_native_scalar<T: RNativeType, R: TryFromSexp<Error = SexpError>>(
sexp: SEXP,
none: impl FnOnce() -> R,
) -> Prepared<R>Expand description
The preparation of Option<&T> / Option<&mut T>: NULL is None,
anything else is a scalar reference.