pub struct AutoDocGenerator { /* private fields */ }Expand description
Automatic documentation generator
Implementations§
Source§impl AutoDocGenerator
impl AutoDocGenerator
Sourcepub fn parse_typescript(
&mut self,
typescript_content: &str,
) -> Result<(), JsValue>
pub fn parse_typescript( &mut self, typescript_content: &str, ) -> Result<(), JsValue>
Parse TypeScript definitions from string
Sourcepub fn generate_documentation(&self) -> Result<String, JsValue>
pub fn generate_documentation(&self) -> Result<String, JsValue>
Generate documentation in the configured format
Generate navigation structure
Sourcepub fn generate_api_reference(&self) -> String
pub fn generate_api_reference(&self) -> String
Generate API reference
Sourcepub fn generate_playground(&self) -> String
pub fn generate_playground(&self) -> String
Generate playground documentation
Sourcepub fn get_statistics(&self) -> String
pub fn get_statistics(&self) -> String
Get statistics about the parsed TypeScript
Trait Implementations§
Source§impl From<AutoDocGenerator> for JsValue
impl From<AutoDocGenerator> for JsValue
Source§fn from(value: AutoDocGenerator) -> Self
fn from(value: AutoDocGenerator) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for AutoDocGenerator
impl FromWasmAbi for AutoDocGenerator
Source§impl IntoWasmAbi for AutoDocGenerator
impl IntoWasmAbi for AutoDocGenerator
Source§impl OptionFromWasmAbi for AutoDocGenerator
impl OptionFromWasmAbi for AutoDocGenerator
Source§impl OptionIntoWasmAbi for AutoDocGenerator
impl OptionIntoWasmAbi for AutoDocGenerator
Source§impl RefFromWasmAbi for AutoDocGenerator
impl RefFromWasmAbi for AutoDocGenerator
Source§type Anchor = RcRef<AutoDocGenerator>
type Anchor = RcRef<AutoDocGenerator>
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 AutoDocGenerator
impl RefMutFromWasmAbi for AutoDocGenerator
Source§impl TryFromJsValue for AutoDocGenerator
impl TryFromJsValue for AutoDocGenerator
Source§impl VectorFromWasmAbi for AutoDocGenerator
impl VectorFromWasmAbi for AutoDocGenerator
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[AutoDocGenerator]>
Source§impl VectorIntoWasmAbi for AutoDocGenerator
impl VectorIntoWasmAbi for AutoDocGenerator
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[AutoDocGenerator]>) -> Self::Abi
Source§impl WasmDescribeVector for AutoDocGenerator
impl WasmDescribeVector for AutoDocGenerator
impl SupportsConstructor for AutoDocGenerator
impl SupportsInstanceProperty for AutoDocGenerator
impl SupportsStaticProperty for AutoDocGenerator
Auto Trait Implementations§
impl Freeze for AutoDocGenerator
impl RefUnwindSafe for AutoDocGenerator
impl Send for AutoDocGenerator
impl Sync for AutoDocGenerator
impl Unpin for AutoDocGenerator
impl UnsafeUnpin for AutoDocGenerator
impl UnwindSafe for AutoDocGenerator
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.