devela::_dep::rustix::path

Function option_into_with_c_str

pub fn option_into_with_c_str<T, F, A>(arg: Option<A>, f: F) -> Result<T, Errno> 
where A: Arg, F: FnOnce(Option<&CStr>) -> Result<T, Errno>,
Available on crate feature dep_rustix only.
Expand description

Runs a closure on arg where A is mapped to a &CStr