pub struct LanguageService;Implementations§
Source§impl LanguageService
impl LanguageService
pub fn new() -> Self
pub fn check_source( &self, name: impl Into<String>, text: impl Into<String>, ) -> CheckResult
pub fn check_file(&self, path: impl AsRef<Path>) -> Result<CheckResult>
pub fn completion_items( &self, name: impl Into<String>, text: impl Into<String>, position: EditorPosition, ) -> CompletionResult
pub fn hover( &self, name: impl Into<String>, text: impl Into<String>, position: EditorPosition, ) -> HoverResult
pub fn definition( &self, name: impl Into<String>, text: impl Into<String>, position: EditorPosition, ) -> DefinitionResult
pub fn format_source( &self, name: impl Into<String>, text: impl Into<String>, ) -> DocumentFormatResult
Trait Implementations§
Source§impl Clone for LanguageService
impl Clone for LanguageService
Source§fn clone(&self) -> LanguageService
fn clone(&self) -> LanguageService
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 Copy for LanguageService
Source§impl Debug for LanguageService
impl Debug for LanguageService
Source§impl Default for LanguageService
impl Default for LanguageService
Source§fn default() -> LanguageService
fn default() -> LanguageService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LanguageService
impl RefUnwindSafe for LanguageService
impl Send for LanguageService
impl Sync for LanguageService
impl Unpin for LanguageService
impl UnsafeUnpin for LanguageService
impl UnwindSafe for LanguageService
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