Trait Literal

Source
pub trait Literal<'a> {
    // Required method
    fn from_str(on: &'a str) -> Self;
}

Required Methods§

Source

fn from_str(on: &'a str) -> 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.

Implementations on Foreign Types§

Source§

impl<'a> Literal<'a> for &'a str

Source§

fn from_str(on: &'a str) -> Self

Implementors§