Trait TryToString

Source
pub trait TryToString {
    // Required method
    fn try_to_string(&self) -> Result<String, AllocError>;
}
Expand description

A trait for converting a value to a String.

Required Methods§

Source

fn try_to_string(&self) -> Result<String, AllocError>

Converts the given value to a String.

Implementations on Foreign Types§

Source§

impl TryToString for Cow<'_, str>

Source§

impl TryToString for str

Source§

impl TryToString for String

Implementors§