pub enum LangType {
Template,
JavaScript,
Backend,
}Expand description
In every language server request, backend has to check for file extension
that responds with this enum LangType.
Completion - Template
Hover - Template
Goto definition - Template
References - Backend/JavaScript
Save - Backend/JavaScript
Goto implementation - Template
Code actions - Template
Variants§
Trait Implementations§
impl Copy for LangType
impl Eq for LangType
impl StructuralPartialEq for LangType
Auto Trait Implementations§
impl Freeze for LangType
impl RefUnwindSafe for LangType
impl Send for LangType
impl Sync for LangType
impl Unpin for LangType
impl UnwindSafe for LangType
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