pub struct WasmAnalyzeResult {
dependencies: SpellDescDependencies,
parse_errors: Vec<Box<str>>,
}Expand description
WASM-exposed result of analyzing a spell description: dependencies + parse errors.
Fields§
§dependencies: SpellDescDependencies§parse_errors: Vec<Box<str>>Implementations§
Source§impl WasmAnalyzeResult
impl WasmAnalyzeResult
pub fn dependencies(&self) -> JsValue
pub fn parse_errors(&self) -> Vec<String>
pub fn has_errors(&self) -> bool
Trait Implementations§
Source§impl Debug for WasmAnalyzeResult
impl Debug for WasmAnalyzeResult
Source§impl From<WasmAnalyzeResult> for JsValue
impl From<WasmAnalyzeResult> for JsValue
Source§fn from(value: WasmAnalyzeResult) -> Self
fn from(value: WasmAnalyzeResult) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmAnalyzeResult
impl FromWasmAbi for WasmAnalyzeResult
Source§impl IntoWasmAbi for WasmAnalyzeResult
impl IntoWasmAbi for WasmAnalyzeResult
Source§impl RefFromWasmAbi for WasmAnalyzeResult
impl RefFromWasmAbi for WasmAnalyzeResult
Source§type Anchor = RcRef<WasmAnalyzeResult>
type Anchor = RcRef<WasmAnalyzeResult>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for WasmAnalyzeResult
impl TryFromJsValue for WasmAnalyzeResult
Source§impl VectorFromWasmAbi for WasmAnalyzeResult
impl VectorFromWasmAbi for WasmAnalyzeResult
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmAnalyzeResult]>
Source§impl VectorIntoWasmAbi for WasmAnalyzeResult
impl VectorIntoWasmAbi for WasmAnalyzeResult
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmAnalyzeResult]>) -> Self::Abi
Source§impl WasmDescribe for WasmAnalyzeResult
impl WasmDescribe for WasmAnalyzeResult
impl SupportsConstructor for WasmAnalyzeResult
impl SupportsInstanceProperty for WasmAnalyzeResult
impl SupportsStaticProperty for WasmAnalyzeResult
Auto Trait Implementations§
impl Freeze for WasmAnalyzeResult
impl RefUnwindSafe for WasmAnalyzeResult
impl Send for WasmAnalyzeResult
impl Sync for WasmAnalyzeResult
impl Unpin for WasmAnalyzeResult
impl UnsafeUnpin for WasmAnalyzeResult
impl UnwindSafe for WasmAnalyzeResult
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§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,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§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.