Crate rstgen
Source Expand description
§Simple and flexible code generator (rsgen)
pub use self::csharp::Csharp;
pub use self::dart::Dart;
pub use self::go::Go;
pub use self::java::Java;
pub use self::js::JavaScript;
pub use self::python::Python;
pub use self::rust::Rust;
- csharp
- Specialization for Csharp code generation.
- dart
- Specialization for Dart code generation.
- go
- Specialization for Go code generation.
- java
- Specialization for Java code generation.
- js
- Specialization for JavaScript code generation.
- python
- Specialization for Python code generation.
- rust
- Specialization for Rust code generation.
- swift
- Specialization for Swift code generation.
- nested
- Helper macro to reduce boilerplate needed with nested token expressions.
- nested_f
- let v = “v”;
- push
- Helper macro to reduce boilerplate needed with pushed token expressions.
- push_f
- let v = “v”;
- toks
- Helper macro to reduce boilerplate needed with nested token expressions.
- toks_f
- let tks: Tokens = toks_f!(“{} {} {}”, 1, “a”, “b”);
assert_eq!(“1 a b”, tks.to_string().unwrap().as_str())
- Formatter
- Formatter implementation for write types.
- IoFmt
- Facade for writing formatted strings to io::Write types.
- Tokens
- A set of tokens.
- Cons
- A managed string that permits immutable borrowing.
- Element
- A single element in a set of tokens.
- Custom
- Trait that must be implemented by custom elements.
- IntoTokens
- Helper trait to convert something into tokens.
- Quoted
- Trait to convert types to quoted elements.
- WriteTokens
- Helper trait to write tokens immediately to containers.