Crate gostd_builtin[][src]

Expand description

Package builtin binds the basic type in go through the type alias, and implements the basic type cast macro function.

zh-cn builtin 包通过类型别名绑定Go中的基础类型,并实现了基础类型强制转换宏函数。

Macros

byte!() eq Go: byte()

float32!() eq Go: float32()

float64!() eq Go: float64()

int!() eq Go: int()

int8!() eq Go: int8()

int16!() eq Go: int16()

int32!() eq Go: int32()

int64!() eq Go: int64()

len!() eq Go: len()

rune!() eq Go: rune()

uint!() eq Go: uint()

uint8!() eq Go: uint8()

uint16!() eq Go: uint16()

uint32!() eq Go: uint32()

uint64!() eq Go: uint64()

uintptr!() eq Go: uintptr()

Constants

Functions

string() eq Go: string(), Convert []byte to string .

Type Definitions

Go: byte eq Rust: u8

Go: float32 type eq Rust: float32

Go: float64 type eq Rust: float64

Go: int type eq Rust: isize

Go: int8 type eq Rust: i8

Go: int16 type eq Rust: i16

Go: int32 type eq Rust: i32

Go: int64 type eq Rust: i64

Go: rune eq Rust: u32

Go: string type eq Rust: String

Go: uint type eq Rust: usize

Go: uint8 type eq Rust: u8 .

Go: uint16 type eq Rust: u16

Go: uint32 type eq Rust: u32

Go: uint64 type eq Rust: u64

Go: uintptr eq Rust: usize