Trait StringUnion

Source
pub trait StringUnion: Sized {
    // Required methods
    fn as_str(&self) -> &str;
    fn try_from_str(value: &str) -> Result<Self>;
}

Required Methods§

Source

fn as_str(&self) -> &str

Source

fn try_from_str(value: &str) -> Result<Self>

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.

Implementors§