Crate mir

Crate mir 

Source

Modules§

parameter

Macros§

arg
Macro to create a FnArg. Second arg is a expr that evaluates to a string. Optionally takes a default. arg!(count: “int” = 500)
import
import!(“bytes”, a, b, c); import!(“bytes”); import!(“bytes::”); import!(pub “bytes::”);
lit
A literal value.
targ
Macro to create a FnArg. Called targ because the type is a TokenStream (specifically a path), rather than a &str. targ!(access_token: String)

Structs§

Class
Doc
Enum
Field
File
Function
Ident
Localized string
Import
ImportItem
Interface
Literal
Module
NewType
Variant

Enums§

Arg
DateSerialization
DecimalSerialization
DocFormat
IntegerSerialization
Item
Ty
Visibility

Functions§

build_dict
Build keys wrapped in braces, e.g. {“a”: 1, “b”: 2}
build_struct
Build something wrapped in braces, { A, B, C }