pub trait IntoStrV {
// Required method
fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R;
}Expand description
A trait to accept both &[T] or StrV as an argument.
Required Methods§
Sourcefn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R
fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R
Runs the given closure with a NULL-terminated array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.