Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, S: From<&'a str>> Original<S> for &'a str

Source§

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

Source§

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

Implementors§

Source§

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