pub struct FileContext<'a> {
pub frontend_version: &'a str,
pub language: Language,
}Expand description
Per-file analysis context that participates in content hashing.
The engine identifies files by index only; language and frontend version
are supplied alongside, typically copied from the
LexedFile the tokens came from.
Fields§
§frontend_version: &'a strVersion tag of the frontend that produced the tokens.
language: LanguageLanguage the file was lexed as.
Trait Implementations§
Source§impl<'a> Clone for FileContext<'a>
impl<'a> Clone for FileContext<'a>
Source§fn clone(&self) -> FileContext<'a>
fn clone(&self) -> FileContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for FileContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileContext<'a>
impl<'a> RefUnwindSafe for FileContext<'a>
impl<'a> Send for FileContext<'a>
impl<'a> Sync for FileContext<'a>
impl<'a> Unpin for FileContext<'a>
impl<'a> UnsafeUnpin for FileContext<'a>
impl<'a> UnwindSafe for FileContext<'a>
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