pub struct ModalityParser {}Implementations§
Source§impl ModalityParser
impl ModalityParser
pub fn new() -> ModalityParser
Sourcepub fn parse_model(&self, content: &str) -> Result<JsValue, JsValue>
pub fn parse_model(&self, content: &str) -> Result<JsValue, JsValue>
Parse a model from a string
Sourcepub fn parse_all_models(&self, content: &str) -> Result<JsValue, JsValue>
pub fn parse_all_models(&self, content: &str) -> Result<JsValue, JsValue>
Parse all models from a string
Sourcepub fn generate_mermaid(&self, model_json: &str) -> Result<String, JsValue>
pub fn generate_mermaid(&self, model_json: &str) -> Result<String, JsValue>
Generate Mermaid diagram from a model JSON string
Sourcepub fn generate_mermaid_styled(
&self,
model_json: &str,
) -> Result<String, JsValue>
pub fn generate_mermaid_styled( &self, model_json: &str, ) -> Result<String, JsValue>
Generate Mermaid diagram with styling from a model JSON string
Sourcepub fn generate_mermaid_with_state(
&self,
model_json: &str,
) -> Result<String, JsValue>
pub fn generate_mermaid_with_state( &self, model_json: &str, ) -> Result<String, JsValue>
Generate Mermaid diagram with current state highlighting from a model JSON string
Sourcepub fn parse_formulas(&self, content: &str) -> Result<JsValue, JsValue>
pub fn parse_formulas(&self, content: &str) -> Result<JsValue, JsValue>
Parse formulas from a string
Trait Implementations§
Source§impl From<ModalityParser> for JsValue
impl From<ModalityParser> for JsValue
Source§fn from(value: ModalityParser) -> Self
fn from(value: ModalityParser) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ModalityParser
impl FromWasmAbi for ModalityParser
Source§impl IntoWasmAbi for ModalityParser
impl IntoWasmAbi for ModalityParser
Source§impl LongRefFromWasmAbi for ModalityParser
impl LongRefFromWasmAbi for ModalityParser
Source§impl OptionFromWasmAbi for ModalityParser
impl OptionFromWasmAbi for ModalityParser
Source§impl OptionIntoWasmAbi for ModalityParser
impl OptionIntoWasmAbi for ModalityParser
Source§impl RefFromWasmAbi for ModalityParser
impl RefFromWasmAbi for ModalityParser
Source§type Anchor = RcRef<ModalityParser>
type Anchor = RcRef<ModalityParser>
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 RefMutFromWasmAbi for ModalityParser
impl RefMutFromWasmAbi for ModalityParser
Source§impl TryFromJsValue for ModalityParser
impl TryFromJsValue for ModalityParser
Source§impl VectorFromWasmAbi for ModalityParser
impl VectorFromWasmAbi for ModalityParser
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ModalityParser]>
Source§impl VectorIntoWasmAbi for ModalityParser
impl VectorIntoWasmAbi for ModalityParser
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ModalityParser]>) -> Self::Abi
Source§impl WasmDescribeVector for ModalityParser
impl WasmDescribeVector for ModalityParser
impl SupportsConstructor for ModalityParser
impl SupportsInstanceProperty for ModalityParser
impl SupportsStaticProperty for ModalityParser
Auto Trait Implementations§
impl Freeze for ModalityParser
impl RefUnwindSafe for ModalityParser
impl Send for ModalityParser
impl Sync for ModalityParser
impl Unpin for ModalityParser
impl UnwindSafe for ModalityParser
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> 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.