Skip to content
/ toto Public

这个库提供一个在数值类型之间转换的方法

License

Notifications You must be signed in to change notification settings

zredb/toto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library provides methods for converting between numeric types. In Rust, when you need to convert basic numeric types to another type, you need to use the as keyword, for example:

1u8 as u16

This library provides two conversion methods that can provide the same functionality:

  1. In the form of global functions:
let v_u16=u8tou16(1u8)
  1. In the form of methods:
let v_u16=1u8.tou16()

About

这个库提供一个在数值类型之间转换的方法

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages