1. 首页
  2. 移动开发
  3. 其他
  4. rustype:从Rust编程语言输入safe OptionResult和Vector 源码

rustype:从Rust编程语言输入safe OptionResult和Vector 源码

上传者: 2021-04-07 12:50:38上传 ZIP文件 105.96KB 热度 8次
赤褐色 :crab: 从Rust编程语言中输入safe Option,Result和Vector。 安装 使用npm npm i @faramo.zayw/rustype 使用纱 yarn add @faramo.zayw/rustype 用法 Option import { Option } from "@faramo.zayw/rustype" ; interface User { id : number ; firstName : string ; lastName : string ; email ?: string ; phone ?: string ; age : number ; } const defaultUser : User = { ... } ; const fetchUser = ( userID : number ) : Option < User
下载地址
用户评论