pub struct SpellDescRenderResult {
pub fragments: Vec<SpellDescFragment>,
pub parse_errors: Vec<String>,
pub warnings: Vec<String>,
}Fields§
§fragments: Vec<SpellDescFragment>§parse_errors: Vec<String>§warnings: Vec<String>Implementations§
Source§impl SpellDescRenderResult
impl SpellDescRenderResult
pub fn new() -> Self
pub fn with_fragments(fragments: Vec<SpellDescFragment>) -> Self
pub fn add_parse_error(&mut self, error: String)
pub fn add_warning(&mut self, warning: String)
pub fn has_errors(&self) -> bool
pub fn to_plain_text(&self) -> String
Trait Implementations§
Source§impl Clone for SpellDescRenderResult
impl Clone for SpellDescRenderResult
Source§fn clone(&self) -> SpellDescRenderResult
fn clone(&self) -> SpellDescRenderResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpellDescRenderResult
impl Debug for SpellDescRenderResult
Source§impl Default for SpellDescRenderResult
impl Default for SpellDescRenderResult
Source§fn default() -> SpellDescRenderResult
fn default() -> SpellDescRenderResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpellDescRenderResult
impl<'de> Deserialize<'de> for SpellDescRenderResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SpellDescRenderResult> for JsValuewhere
SpellDescRenderResult: Serialize,
impl From<SpellDescRenderResult> for JsValuewhere
SpellDescRenderResult: Serialize,
Source§fn from(value: SpellDescRenderResult) -> Self
fn from(value: SpellDescRenderResult) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
impl IntoWasmAbi for &SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
Source§impl IntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
impl IntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
Source§impl OptionIntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
impl OptionIntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
Source§impl Serialize for SpellDescRenderResult
impl Serialize for SpellDescRenderResult
Source§impl Tsify for SpellDescRenderResult
impl Tsify for SpellDescRenderResult
const DECL: &'static str = "export interface SpellDescRenderResult {\n fragments: SpellDescFragment[];\n parseErrors: string[];\n warnings: string[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorIntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
impl VectorIntoWasmAbi for SpellDescRenderResultwhere
SpellDescRenderResult: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for SpellDescRenderResult
impl WasmDescribe for SpellDescRenderResult
Auto Trait Implementations§
impl Freeze for SpellDescRenderResult
impl RefUnwindSafe for SpellDescRenderResult
impl Send for SpellDescRenderResult
impl Sync for SpellDescRenderResult
impl Unpin for SpellDescRenderResult
impl UnsafeUnpin for SpellDescRenderResult
impl UnwindSafe for SpellDescRenderResult
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> 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.