Trait SourcePos

Source
pub trait SourcePos:
    Clone
    + Copy
    + Default
    + Debug
    + PartialOrd
    + Ord
    + 'static
    + CondSerialize {
    // Required methods
    fn update(&mut self, c: char);
    fn update_newline(&mut self, rn: bool);
    fn update_str_no_newline(&mut self, s: &str);
    fn update_str_maybe_newline(&mut self, s: &str);
}

Required Methodsยง

Source

fn update(&mut self, c: char)

Source

fn update_newline(&mut self, rn: bool)

Source

fn update_str_no_newline(&mut self, s: &str)

Source

fn update_str_maybe_newline(&mut self, s: &str)

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 SourcePos for ()

Sourceยง

impl<A: SourcePos, B: SourcePos> SourcePos for (A, B)

Implementorsยง