LitConvertible

Trait LitConvertible 

Source
trait LitConvertible {
    type V: Eq;

    // Required method
    fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>;
}

Required Associated Types§

Source

type V: Eq

Required Methods§

Source

fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Implementations on Foreign Types§

Source§

impl LitConvertible for LitBool

Source§

type V = ()

Source§

fn lc_convert(&self, _cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Source§

impl LitConvertible for LitByte

Source§

type V = u8

Source§

fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Source§

impl LitConvertible for LitByteStr

Source§

type V = Vec<u8>

Source§

fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Source§

impl LitConvertible for LitChar

Source§

type V = char

Source§

fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Source§

impl LitConvertible for LitFloat

Source§

type V = String

Source§

fn lc_convert(&self, _cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Source§

impl LitConvertible for LitStr

Source§

type V = String

Source§

fn lc_convert(&self, cmp_loc: &(Span, &'_ str)) -> Result<Self::V>

Implementors§