[−][src]Module genco::prelude::swift
Specialization for Swift code generation.
Examples
String quoting in Swift:
#[feature(proc_macro_hygiene)] use genco::prelude::*; let toks: swift::Tokens = quote!(#("hello \n world".quoted())); assert_eq!("\"hello \\n world\"", toks.to_string().unwrap());
Structs
Array | An array, |
Map | A map |
Swift | Swift token specialization. |
Type | A regular type. |
TypeBox | Boxed type container |
Enums
TypeEnum | Enum that can be used for casting between variants of the same type |
Traits
TypeArgs | 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. |