litrs::escape

Trait Escapee

source
pub(crate) trait Escapee: Into<char> {
    const SUPPORTS_UNICODE: bool;

    // Required methods
    fn from_byte(b: u8) -> Self;
    fn from_char(c: char) -> Self;
}

Required Associated Constants§

Required Methods§

source

fn from_byte(b: u8) -> Self

source

fn from_char(c: char) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Escapee for char

source§

const SUPPORTS_UNICODE: bool = true

source§

fn from_byte(b: u8) -> Self

source§

fn from_char(c: char) -> Self

source§

impl Escapee for u8

source§

const SUPPORTS_UNICODE: bool = false

source§

fn from_byte(b: u8) -> Self

source§

fn from_char(_: char) -> Self

Implementors§