logo
  • 教程列表
  • SO官方文檔
  • 泛型
    • 宣告
    • 例項化
    • 多種型別引數
    • 有界泛型型別
    • 通用功能
  1. StackOverflow 文件
  2. Rust 教程
  3. 泛型
  4. 例項化

例項化

Created: November-22, 2018

// explicit type declaration
let some_value: Option<u32> = Some(13);

// implicit type declaration
let some_other_value = Some(66);
  • 多種型別引數
  • 宣告

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明