Struct source_map::MapFileStore
source · pub struct MapFileStore(_);
Trait Implementations§
source§impl Default for MapFileStore
impl Default for MapFileStore
source§fn default() -> MapFileStore
fn default() -> MapFileStore
Returns the “default value” for a type. Read more
source§impl FileSystem for MapFileStore
impl FileSystem for MapFileStore
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 MapFileStore
impl Send for MapFileStore
impl Sync for MapFileStore
impl Unpin for MapFileStore
impl UnwindSafe for MapFileStore
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