Struct source_map::GlobalStore
source · pub struct GlobalStore;
Trait Implementations§
source§impl FileSystem for GlobalStore
impl FileSystem for GlobalStore
fn new_source_id_with_line_starts( &mut self, path: PathBuf, content: String ) -> (SourceId, LineStarts)
fn get_source<T, F: for<'a> FnOnce(&'a Source) -> T>( &self, source_id: SourceId, f: F ) -> T
source§fn new_source_id(&mut self, path: PathBuf, content: String) -> SourceId
fn new_source_id(&mut self, path: PathBuf, content: String) -> SourceId
Generate a new SourceId
fn get_file_path_and_content(&self, source_id: SourceId) -> (PathBuf, String)
fn get_file_path(&self, source_id: SourceId) -> PathBuf
fn get_file_content(&self, source_id: SourceId) -> String
fn get_file_whole_span(&self, source_id: SourceId) -> Span
Auto Trait Implementations§
impl RefUnwindSafe for GlobalStore
impl Send for GlobalStore
impl Sync for GlobalStore
impl Unpin for GlobalStore
impl UnwindSafe for GlobalStore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more