Struct sqruff_lsp::Wasm
source · pub struct Wasm(/* private fields */);
Implementations§
source§impl Wasm
impl Wasm
pub fn new(send_diagnostics_callback: Function) -> Self
pub fn save_registration_options() -> JsValue
pub fn update_config(&mut self, source: &str)
pub fn on_initialize(&self) -> JsValue
pub fn on_notification(&mut self, method: &str, params: JsValue)
pub fn format(&mut self, uri: JsValue) -> JsValue
Trait Implementations§
source§impl FromWasmAbi for Wasm
impl FromWasmAbi for Wasm
source§impl IntoWasmAbi for Wasm
impl IntoWasmAbi for Wasm
source§impl LongRefFromWasmAbi for Wasm
impl LongRefFromWasmAbi for Wasm
source§impl OptionFromWasmAbi for Wasm
impl OptionFromWasmAbi for Wasm
source§impl OptionIntoWasmAbi for Wasm
impl OptionIntoWasmAbi for Wasm
source§impl RefFromWasmAbi for Wasm
impl RefFromWasmAbi for Wasm
source§impl RefMutFromWasmAbi for Wasm
impl RefMutFromWasmAbi for Wasm
source§impl TryFromJsValue for Wasm
impl TryFromJsValue for Wasm
source§impl VectorFromWasmAbi for Wasm
impl VectorFromWasmAbi for Wasm
source§impl VectorIntoWasmAbi for Wasm
impl VectorIntoWasmAbi for Wasm
Auto Trait Implementations§
impl !Freeze for Wasm
impl !RefUnwindSafe for Wasm
impl !Send for Wasm
impl !Sync for Wasm
impl Unpin for Wasm
impl !UnwindSafe for Wasm
Blanket Implementations§
source§impl<T> AsAnyMut for Twhere
T: Any,
impl<T> AsAnyMut for Twhere
T: Any,
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.