[][src]Module dustr::types

Definition of types supported by dustr and their behavior.

These types are the basic types you can use to build your data hierarchy.

Structs

BehaviorBool

The std lib's bool type behavior.

BehaviorDuration

The std lib's bool type behavior.

BehaviorForeign

Any unknown type's behavior, assumed to implement an ffi shim themselves.

BehaviorOption

The std lib's Option type behavior.

BehaviorReference

The behavior of simple, read-only &references.

BehaviorResult

The std lib's Result type behavior.

BehaviorScalars

Builtin scalar behaviors: f32, u32, ...

BehaviorString

The std lib's String type behavior.

BehaviorVec

The std lib's Vec type behavior, backed by ffishim library's FFIVec.

Traits

Behavior

The behavior of a Type as needed to generate its dart code.

Functions

switch

Switch over a given Type and return the associated Behavior.