glib::collections::strv

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", so this trait is not object safe.

Implementations on Foreign Types§

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<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<'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<'a> IntoStrV for &[&'a GString]

Source§

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

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> IntoStrV for Vec<&'a GStr>

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 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 str; 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, 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, 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

Implementors§

Source§

impl IntoStrV for StrV

Source§

impl<'a> IntoStrV for &'a StrV