pub struct Server { /* private fields */ }Expand description
A language server for FML documents.
Implementations§
Source§impl Server
impl Server
Sourcepub fn new(definitions: SharedDefinitions) -> Self
pub fn new(definitions: SharedDefinitions) -> Self
A server that checks maps against definitions.
Sourcepub fn set_definitions(&mut self, definitions: SharedDefinitions) -> Vec<Value>
pub fn set_definitions(&mut self, definitions: SharedDefinitions) -> Vec<Value>
Replaces the definitions, as when packages are added, and checks the open documents again. Returns their new diagnostics.
Sourcepub fn capabilities() -> ServerCapabilities
pub fn capabilities() -> ServerCapabilities
What the server can do.
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl !UnwindSafe for Server
impl Forget for Server
impl Freeze for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
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