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_by_id<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) -> SpanWithSource
Auto Trait Implementations§
impl Freeze for GlobalStore
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