pub trait IsString: AstToken {
    const RAW_PREFIX: &'static str;

    // Provided methods
    fn is_raw(&self) -> bool { ... }
    fn quote_offsets(&self) -> Option<QuoteOffsets> { ... }
    fn text_range_between_quotes(&self) -> Option<TextRange> { ... }
    fn open_quote_text_range(&self) -> Option<TextRange> { ... }
    fn close_quote_text_range(&self) -> Option<TextRange> { ... }
    fn escaped_char_ranges(
        &self,
        cb: &mut dyn FnMut(TextRange, Result<char, EscapeError>)
    ) { ... }
    fn map_range_up(&self, range: TextRange) -> Option<TextRange> { ... }
}

Required Associated Constants§

source

const RAW_PREFIX: &'static str

Provided Methods§

Implementors§

source§

impl IsString for ByteString

source§

const RAW_PREFIX: &'static str = "br"

source§

impl IsString for CString

source§

const RAW_PREFIX: &'static str = "cr"

source§

impl IsString for String

source§

const RAW_PREFIX: &'static str = "r"