Skip to main content

IntoStrV

Trait 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§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoStrV for &[&str]

Source§

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

Source§

impl IntoStrV for &[&GStr]

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 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 IntoStrV for &[String]

Source§

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

Source§

impl IntoStrV for Vec<&str>

Source§

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

Source§

impl IntoStrV for Vec<&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 IntoStrV for Vec<&String>

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 IntoStrV for Vec<String>

Source§

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

Source§

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

Source§

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

Source§

impl<const N: usize> IntoStrV for [&GStr; 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<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

Implementors§