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) -> JsValue
fn from(value: WasmAnalyzeResult) -> JsValue
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 LongRefFromWasmAbi for WasmAnalyzeResult
impl LongRefFromWasmAbi for WasmAnalyzeResult
Source§type Anchor = RcRef<WasmAnalyzeResult>
type Anchor = RcRef<WasmAnalyzeResult>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <WasmAnalyzeResult as LongRefFromWasmAbi>::Abi,
) -> <WasmAnalyzeResult as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <WasmAnalyzeResult as LongRefFromWasmAbi>::Abi, ) -> <WasmAnalyzeResult as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for WasmAnalyzeResult
impl OptionFromWasmAbi for WasmAnalyzeResult
Source§fn is_none(abi: &<WasmAnalyzeResult as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<WasmAnalyzeResult as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for WasmAnalyzeResult
impl OptionIntoWasmAbi for WasmAnalyzeResult
Source§fn none() -> <WasmAnalyzeResult as IntoWasmAbi>::Abi
fn none() -> <WasmAnalyzeResult as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§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§unsafe fn ref_from_abi(
js: <WasmAnalyzeResult as RefFromWasmAbi>::Abi,
) -> <WasmAnalyzeResult as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <WasmAnalyzeResult as RefFromWasmAbi>::Abi, ) -> <WasmAnalyzeResult as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for WasmAnalyzeResult
impl RefMutFromWasmAbi for WasmAnalyzeResult
Source§type Anchor = RcRefMut<WasmAnalyzeResult>
type Anchor = RcRefMut<WasmAnalyzeResult>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(
js: <WasmAnalyzeResult as RefMutFromWasmAbi>::Abi,
) -> <WasmAnalyzeResult as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <WasmAnalyzeResult as RefMutFromWasmAbi>::Abi, ) -> <WasmAnalyzeResult as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for WasmAnalyzeResult
impl TryFromJsValue for WasmAnalyzeResult
Source§fn try_from_js_value(value: JsValue) -> Result<WasmAnalyzeResult, JsValue>
fn try_from_js_value(value: JsValue) -> Result<WasmAnalyzeResult, JsValue>
Performs the conversion.
Source§fn try_from_js_value_ref(value: &JsValue) -> Option<WasmAnalyzeResult>
fn try_from_js_value_ref(value: &JsValue) -> Option<WasmAnalyzeResult>
Performs the conversion.
Source§impl VectorFromWasmAbi for WasmAnalyzeResult
impl VectorFromWasmAbi for WasmAnalyzeResult
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <WasmAnalyzeResult as VectorFromWasmAbi>::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]>, ) -> <WasmAnalyzeResult as VectorIntoWasmAbi>::Abi
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.