pub struct DocInfo<'a> {
pub path: &'a str,
pub language: &'a str,
}Expand description
Per-document information callbacks can see: the file’s path and language id. Empty strings are fine when the caller has neither.
Fields§
§path: &'a strThe file’s path, as shown to the user.
language: &'a strThe document’s language id.
Implementations§
Trait Implementations§
impl<'a> Copy for DocInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for DocInfo<'a>
impl<'a> RefUnwindSafe for DocInfo<'a>
impl<'a> Send for DocInfo<'a>
impl<'a> Sync for DocInfo<'a>
impl<'a> Unpin for DocInfo<'a>
impl<'a> UnsafeUnpin for DocInfo<'a>
impl<'a> UnwindSafe for DocInfo<'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