Trait StringType

Source
pub trait StringType: Sealed + Into<String> { }
Available on crate feature alloc only.
Expand description

Trait for standard utf-8 string types. Implemented for &str, String, Box<str> and Cow<'_, str>

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 StringType for &str

Source§

impl StringType for Cow<'_, str>

Source§

impl StringType for Box<str>

Source§

impl StringType for String

Implementors§