[][src]Module genco::lang::swift

Specialization for Swift code generation.

String Quoting in Swift

Swift uses UTF-8 internally, string quoting is with the exception of escape sequences a one-to-one translation.

use genco::prelude::*;

let toks: swift::Tokens = quote!("start π 😊 \n \x7f ÿ $ end");
assert_eq!("\"start π 😊 \\n \\u{7f} ÿ $ end\"", toks.to_string()?);

Structs

Config

Configuration for formatting Swift code.

Format

Format state for Swift code.

Import

The import of a Swift type import UIKit.

Swift

Swift token specialization.

Enums

Any

Enum produced by AsAny::as_any() which can be used to identify and operate over a discrete language item type.

Traits

AsAny

Language-specific conversion trait implemented by all language items.

Functions

import

The import of a Swift type import UIKit.

Type Definitions

Tokens

Tokens container specialization for Rust.