Trait TypedString

Source
pub trait TypedString {
    // Required method
    fn value() -> String;
}
Expand description

Get original string from typed string (requires alloc or std feature).

Required Methods§

Source

fn value() -> String

Available on crate features std or alloc only.

The original string.

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<const C: char> TypedString for Tuple<Character<C>, Unit>

Source§

fn value() -> String

Available on crate features std or alloc only.
Source§

impl<const C: char, Other> TypedString for Tuple<Character<C>, Other>
where Other: TypedString,

Source§

fn value() -> String

Available on crate features std or alloc only.

Implementors§