Trait Source

Source
pub trait Source {
    // Required methods
    fn sourcemap(&self) -> Option<&SourceMap>;
    fn content(&self) -> &str;

    // Provided method
    fn lines_count(&self) -> u32 { ... }
}

Required Methods§

Source

fn sourcemap(&self) -> Option<&SourceMap>

Source

fn content(&self) -> &str

Provided Methods§

Source

fn lines_count(&self) -> u32

Trait Implementations§

Source§

impl Source for &Box<dyn Source + Send + Sync>

Implementations on Foreign Types§

Source§

impl Source for &str

Source§

impl Source for &Box<dyn Source + Send + Sync>

Source§

impl Source for String

Implementors§