Crate gostd_builtin

Crate gostd_builtin 

Source
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
byte!() eq Go: byte()
float32
float32!() eq Go: float32()
float64
float64!() eq Go: float64()
int
int!() eq Go: int()
int8
int8!() eq Go: int8()
int16
int16!() eq Go: int16()
int32
int32!() eq Go: int32()
int64
int64!() eq Go: int64()
len
len!() eq Go: len()
rune
rune!() eq Go: rune()
uint
uint!() eq Go: uint()
uint8
uint8!() eq Go: uint8()
uint16
uint16!() eq Go: uint16()
uint32
uint32!() eq Go: uint32()
uint64
uint64!() eq Go: uint64()
uintptr
uintptr!() eq Go: uintptr()

Constants§

iota

Functions§

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

Type Aliases§

byte
Go: byte eq Rust: u8
float32
Go: float32 type eq Rust: float32
float64
Go: float64 type eq Rust: float64
int
Go: int type eq Rust: isize
int8
Go: int8 type eq Rust: i8
int16
Go: int16 type eq Rust: i16
int32
Go: int32 type eq Rust: i32
int64
Go: int64 type eq Rust: i64
rune
Go: rune eq Rust: u32
string
Go: string type eq Rust: String
uint
Go: uint type eq Rust: usize
uint8
Go: uint8 type eq Rust: u8 .
uint16
Go: uint16 type eq Rust: u16
uint32
Go: uint32 type eq Rust: u32
uint64
Go: uint64 type eq Rust: u64
uintptr
Go: uintptr eq Rust: usize