[−][src]Module genco::prelude::swift
Specialization for Swift code generation.
Examples
String quoting in Swift:
use genco::prelude::*; let toks: swift::Tokens = quote!(#("hello \n world".quoted())); assert_eq!("\"hello \\n world\"", toks.to_string()?);
Structs
Any | Type that can contain any language type. Derefs to the type trait. |
Array | An array, |
Config | Configuration for formatting Swift code. |
Format | Format state for Swift code. |
Map | A map |
Swift | Swift token specialization. |
Type | A regular type. |
Enums
AnyRef | Enum that can be used for casting between variants of the same type |
Traits
Args | Helper trait for things that can be turned into generic arguments. |
TypeTrait | Trait implemented by all types |
Functions
array | Setup an array. |
imported | Setup an imported element. |
local | Setup a local element. |
map | Setup a map. |
Type Definitions
Tokens | Tokens container specialization for Rust. |