[][src]Trait moore_common::source::SourceFile

pub trait SourceFile {
    pub fn get_id(&self) -> Source;
pub fn get_path(&self) -> RcStr;
pub fn get_content(&self) -> Rc<dyn SourceContent>; pub fn extract(&self, begin: usize, end: usize) -> String { ... } }

Required methods

pub fn get_id(&self) -> Source[src]

pub fn get_path(&self) -> RcStr[src]

pub fn get_content(&self) -> Rc<dyn SourceContent>[src]

Obtain the content of this source file. The returned object may be used to iterate over the characters in the file or extract portions of it.

Loading content...

Provided methods

pub fn extract(&self, begin: usize, end: usize) -> String[src]

Copy a range of the source content into a String instance owned by the caller, possibly converting the encoding such that the result is in UTF-8.

Loading content...

Implementors

Loading content...