pub struct HTMLLanguageService { /* private fields */ }
Expand description
This is a collection of features necessary to implement an HTML language server
Make sure you activated the features you need of the html-languageservice
crate on Cargo.toml
§Features
- completion
- hover
- formatter
- highlight
- links
- symbols
- folding
- selection_range
- rename
- matching_tag_position
- linked_editing
Implementations§
Source§impl HTMLLanguageService
impl HTMLLanguageService
pub fn new(options: &HTMLLanguageServiceOptions) -> HTMLLanguageService
pub fn create_scanner<'a>( &self, input: &'a str, initial_offset: usize, ) -> Scanner<'a>
pub fn create_data_manager( &self, use_default_data_provider: bool, custom_data_providers: Option<Vec<Box<dyn IHTMLDataProvider>>>, ) -> HTMLDataManager
pub fn parse_html_document( &self, document: &FullTextDocument, data_manager: &HTMLDataManager, ) -> HTMLDocument
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HTMLLanguageService
impl RefUnwindSafe for HTMLLanguageService
impl Send for HTMLLanguageService
impl Sync for HTMLLanguageService
impl Unpin for HTMLLanguageService
impl UnwindSafe for HTMLLanguageService
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