Expand description
Language specialization for genco
This module contains sub-modules which provide implementations of the Lang trait to configure genco for various programming languages.
This module also provides a dummy Lang implementation for ()
.
This allows ()
to be used as a quick and dirty way to do formatting,
usually for examples.
use genco::prelude::*;
let tokens: Tokens = quote!(hello world);
Re-exports§
pub use self::c::C;
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::nix::Nix;
pub use self::python::Python;
pub use self::rust::Rust;
pub use self::swift::Swift;
Modules§
- Specialization for C code generation.
- Specialization for Csharp code generation.
- Specialization for Dart code generation.
- Specialization for Go code generation.
- Specialization for Java code generation.
- Specialization for JavaScript code generation.
- Nix
- Specialization for Python code generation.
- Specialization for Rust code generation.
- Specialization for Swift code generation.
Traits§
- Trait to implement for language specialization.
- A type-erased holder for language-specific items.
- Marker trait indicating that a language supports quoted string interpolation.
Functions§
- Escape the given string according to a C-family escape sequence.