pub struct FileView { /* private fields */ }Expand description
A shared view of an interned source file.
It holds a reference count rather than a borrow, so it is independent of the map’s internal storage and of the lock: interning more files, or dropping the map itself, cannot invalidate a live view.
Methods from Deref<Target = SourceFile>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileView
impl RefUnwindSafe for FileView
impl Send for FileView
impl Sync for FileView
impl Unpin for FileView
impl UnsafeUnpin for FileView
impl UnwindSafe for FileView
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