pub struct Guest { /* private fields */ }Implementations§
Source§impl Guest
impl Guest
Sourcepub fn call_get_manifest<S: AsContextMut>(
&self,
store: S,
) -> Result<MutationManifest>
pub fn call_get_manifest<S: AsContextMut>( &self, store: S, ) -> Result<MutationManifest>
=== Exported Functions === Get mutation manifest (called once at plugin load)
Sourcepub fn call_get_pattern_source<S: AsContextMut>(
&self,
store: S,
) -> Result<String>
pub fn call_get_pattern_source<S: AsContextMut>( &self, store: S, ) -> Result<String>
Get additional pattern sources (called once at plugin load) Return empty string if primary pattern is sufficient
Sourcepub fn call_execute_transform<S: AsContextMut>(
&self,
store: S,
arg0: &[MatchResult],
arg1: &TransformContext,
) -> Result<Result<Vec<TextEdit>, TransformError>>
pub fn call_execute_transform<S: AsContextMut>( &self, store: S, arg0: &[MatchResult], arg1: &TransformContext, ) -> Result<Result<Vec<TextEdit>, TransformError>>
Execute transform (called only when transform = wasm-execute)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Guest
impl RefUnwindSafe for Guest
impl Send for Guest
impl Sync for Guest
impl Unpin for Guest
impl UnsafeUnpin for Guest
impl UnwindSafe for Guest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more