[][src]Module genco::dart

Specialization for Dart code generation.

Examples

String quoting in Dart:

use genco::prelude::*;

let toks: dart::Tokens = quote!(#("hello \n world".quoted()));
assert_eq!("\"hello \\n world\"", toks.to_string().unwrap());

Structs

BuiltIn

built-in types.

Config

Config data for Dart formatting.

Dart

Language specialization for Dart.

DocComment

Format a doc comment where each line is preceeded by ///.

Dynamic

The dynamic type.

Local

a locally defined type.

Type

A custom dart type.

TypeBox

Boxed type container

Void

the void type.

Enums

Modifier

A Dart modifier.

TypeEnum

Enum that can be used for casting between variants of the same type

Constants

BOOL

Boolean built-in type.

DOUBLE

Double built-in type.

DYNAMIC

The type corresponding to dynamic.

INT

Integer built-in type.

VOID

The type corresponding to void.

Statics

DART_CORE

dart:core package.

Traits

TypeArgs

Helper trait for things that can be turned into generic arguments.

TypeTrait

Trait implemented by all types

Functions

doc_comment

Format a doc comment where each line is preceeded by ///.

imported

Setup an imported element.

local

Setup a local element.

Type Definitions

Tokens

Tokens container specialization for Dart.