Trait kodept_parse::error::Original

source ·
pub trait Original<Actual> {
    // Required methods
    fn point_pos(&self, point: impl Into<CodePoint>) -> usize;
    fn actual(&self, point: impl Into<CodePoint>) -> Actual;
}

Required Methods§

source

fn point_pos(&self, point: impl Into<CodePoint>) -> usize

source

fn actual(&self, point: impl Into<CodePoint>) -> Actual

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Original<String> for &str

source§

fn point_pos(&self, point: impl Into<CodePoint>) -> usize

source§

fn actual(&self, point: impl Into<CodePoint>) -> String

source§

impl<'s> Original<&'s str> for &'s str

source§

fn point_pos(&self, point: impl Into<CodePoint>) -> usize

source§

fn actual(&self, point: impl Into<CodePoint>) -> &'s str

Implementors§

source§

impl<'t> Original<Token<'t>> for TokenStream<'t>