Trait IntoStrV

pub trait IntoStrV {
    // Required method
    fn run_with_strv<R, F>(self, f: F) -> R
       where F: FnOnce(&[*mut i8]) -> R;
}
Expand description

A trait to accept both &[T] or StrV as an argument.

Required Methods§

fn run_with_strv<R, F>(self, f: F) -> R
where F: FnOnce(&[*mut i8]) -> 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.

Implementations on Foreign Types§

§

impl IntoStrV for &[&str]

§

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

§

impl IntoStrV for &[&GStr]

§

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

§

impl IntoStrV for &[&GString]

§

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

§

impl IntoStrV for &[&String]

§

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

§

impl IntoStrV for &[GString]

§

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

§

impl IntoStrV for &[String]

§

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

§

impl IntoStrV for Vec<&str>

§

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

§

impl IntoStrV for Vec<&GStr>

§

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

§

impl IntoStrV for Vec<&GString>

§

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

§

impl IntoStrV for Vec<&String>

§

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

§

impl IntoStrV for Vec<GString>

§

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

§

impl IntoStrV for Vec<String>

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

§

impl IntoStrV for &StrV

§

impl IntoStrV for StrV