Rust By Example(英文)
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

Std misc

来源 进击的皇虫 浏览 1 扫码 打印 2026-10-24 15:46:27
  • Std misc
    • See also:

Std misc

Many other types are provided by the std library to support things such as:

  • Threads
  • Channels
  • File I/O

These expand beyond what the primitives provide.

See also:

primitives and the std library

上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • The Rust Code of Conduct
  • License
  • Rust By Example
  • Introduction
  • Hello World
    • Comments
    • Formatted print
      • Debug
      • Display
        • Testcase: List
      • Formatting
  • Primitives
    • Literals and operators
    • Tuples
    • Arrays and Slices
  • Custom Types
    • Structures
    • Enums
      • use
      • C-like
      • Testcase: linked-list
    • constants
  • Variable Bindings
    • Mutability
    • Scope and Shadowing
    • Declare first
  • Types
    • Casting
    • Literals
    • Inference
    • Aliasing
  • Conversion
    • From and Into
    • TryFrom and TryInto
    • To and from Strings
  • Expressions
  • Flow Control
    • if/else
    • loop
      • Nesting and labels
      • Returning from loops
    • while
    • for and range
    • match
      • Destructuring
        • tuples
        • enums
        • pointers/ref
        • structs
      • Guards
      • Binding
    • if let
    • while let
  • Functions
    • Methods
    • Closures
      • Capturing
      • As input parameters
      • Type anonymity
      • Input functions
      • As output parameters
      • Examples in std
        • Iterator::any
        • Iterator::find
    • Higher Order Functions
    • Diverging functions
  • Modules
    • Visibility
    • Struct visibility
    • The use declaration
    • super and self
    • File hierarchy
  • Crates
    • Library
    • extern crate
  • Cargo
    • Dependencies
    • Conventions
    • Tests
  • Attributes
    • dead_code
    • Crates
    • cfg
      • Custom
  • Generics
    • Functions
    • Implementation
    • Traits
    • Bounds
      • Testcase: empty bounds
    • Multiple bounds
    • Where clauses
    • New Type Idiom
    • Associated items
      • The Problem
      • Associated types
    • Phantom type parameters
      • Testcase: unit clarification
  • Scoping rules
    • RAII
    • Ownership and moves
      • Mutability
    • Borrowing
      • Mutability
      • Freezing
      • Aliasing
      • The ref pattern
    • Lifetimes
      • Explicit annotation
      • Functions
      • Methods
      • Structs
      • Bounds
      • Coercion
      • Static
      • Elision
  • Traits
    • Derive
    • Operator Overloading
    • Drop
    • Iterators
    • Clone
  • macro_rules!
    • Syntax
      • Designators
      • Overload
      • Repeat
    • DRY (Don’t Repeat Yourself)
    • DSL (Domain Specific Languages)
    • Variadics
  • Error handling
    • panic
    • Option & unwrap
      • Combinators: map
      • Combinators: and_then
    • Result
      • map for Result
      • aliases for Result
      • Early returns
      • Introducing ?
    • Multiple error types
      • Pulling Results out of Options
      • Defining an error type
      • Boxing errors
      • Other uses of ?
      • Wrapping errors
    • Iterating over Results
  • Std library types
    • Box, stack and heap
    • Vectors
    • Strings
    • Option
    • Result
      • ?
    • panic!
    • HashMap
      • Alternate/custom key types
      • HashSet
  • Std misc
    • Threads
      • Testcase: map-reduce
    • Channels
    • Path
    • File I/O
      • open
      • create
    • Child processes
      • Pipes
      • Wait
    • Filesystem Operations
    • Program arguments
      • Argument parsing
    • Foreign Function Interface
  • Testing
    • Unit testing
    • Documentation testing
    • Integration testing
    • Dev-dependencies
  • Meta
    • Documentation
  • Unsafe Operations
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度