Trait Decode

Source
pub trait Decode {
    // Required method
    fn as_str(&self) -> &str;

    // Provided methods
    fn decode(&self) -> Result<Cow<'_, str>, Box<dyn Error + '_>> { ... }
    fn decode_hex(&self, code: &str) -> IResult<&str, Cow<'_, str>, Error<&str>> { ... }
    fn decode_digit(
        &self,
        code: &str,
    ) -> IResult<&str, Cow<'_, str>, Error<&str>> { ... }
}

Required Methods§

Source

fn as_str(&self) -> &str

Provided Methods§

Source

fn decode(&self) -> Result<Cow<'_, str>, Box<dyn Error + '_>>

Source

fn decode_hex(&self, code: &str) -> IResult<&str, Cow<'_, str>, Error<&str>>

Source

fn decode_digit(&self, code: &str) -> IResult<&str, Cow<'_, str>, Error<&str>>

Implementations on Foreign Types§

Source§

impl Decode for &str

Source§

fn as_str(&self) -> &str

Source§

impl Decode for String

Source§

fn as_str(&self) -> &str

Implementors§