Docs.rs
typescript-webidl-0.0.3
typescript-webidl 0.0.3
Docs.rs crate page
MIT
Links
crates.io
Source
Owners
fqq
Dependencies
oak-core ^0.0.11
normal
oak-idl ^0.0.11
normal
serde ^1.0.228
normal
serde_json ^1.0.149
normal
typescript-ir ^0.0.3
normal
typescript-types ^0.0.3
normal
Versions
100%
of the crate is documented
Go to latest version
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
parse
typescript_
webidl
0.0.3
parse
Sections
参数
返回值
In crate typescript_
webidl
typescript_webidl
Function
parse
Copy item path
Source
pub fn parse(idl: &
str
) ->
Result
<
IdlRoot
,
String
>
Expand description
解析 WebIDL 字符串
§
参数
idl
: 要解析的 WebIDL 字符串
§
返回值
Ok(IdlRoot)
: 解析成功,返回 WebIDL AST
Err(String)
: 解析失败,返回错误信息