pub struct Source { /* private fields */ }Implementations§
Source§impl Source
impl Source
pub fn inline(file_name: &Path, contents: &str) -> Source
pub fn from_latin1_file(file_name: &Path) -> Result<Source>
pub fn contents(&self) -> RwLockReadGuard<'_, Contents>
pub fn file_name(&self) -> &Path
pub fn pos(&self, start: Position, end: Position) -> SrcPos
pub fn change(&self, range: Option<&Range>, content: &str)
Trait Implementations§
impl Eq for Source
Auto Trait Implementations§
impl Freeze for Source
impl !RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl !UnwindSafe for Source
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