Trait glib::collections::strv::IntoStrV
source · 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.