Skip to main content

IntoStrings

Trait IntoStrings 

Source
pub trait IntoStrings {
    // Required method
    fn into_strings(self) -> Vec<String>;
}
Expand description

A type that can be converted to a list of strings.

Required Methods§

Source

fn into_strings(self) -> Vec<String>

Creates a list of strings from this type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoStrings for &[&str]

Source§

impl IntoStrings for &[String]

Source§

impl IntoStrings for &str

Source§

impl IntoStrings for Cow<'_, str>

Source§

impl IntoStrings for String

Source§

impl IntoStrings for Vec<&str>

Source§

impl IntoStrings for Vec<String>

Implementors§