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§

source

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

Runs the given closure with a NULL-terminated array.

Implementations on Foreign Types§

source§

impl<'a> IntoStrV for &[&'a String]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for Vec<&'a str>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a, const N: usize> IntoStrV for [&'a String; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<const N: usize> IntoStrV for [GString; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<const N: usize> IntoStrV for [String; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a, const N: usize> IntoStrV for [&'a GStr; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for &[&'a str]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for &[&'a GStr]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl IntoStrV for Vec<GString>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for Vec<&'a String>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a, const N: usize> IntoStrV for [&'a GString; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for Vec<&'a GString>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for &[&'a GString]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a, const N: usize> IntoStrV for [&'a str; N]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl IntoStrV for Vec<String>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl IntoStrV for &[String]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl IntoStrV for &[GString]

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

source§

impl<'a> IntoStrV for Vec<&'a GStr>

source§

fn run_with_strv<R, F: FnOnce(&[*mut c_char]) -> R>(self, f: F) -> R

Implementors§

source§

impl IntoStrV for StrV

source§

impl<'a> IntoStrV for &'a StrV