collections

Crate collections

???? This is a nightly-only experimental API. (collections #27783)library is unlikely to be stabilized with the current layout and name, use std::collections instead

Collection types.

See std::collections for a detailed discussion of collections in Rust.

Reexports

pub use binary_heap::BinaryHeap;
pub use btree_map::BTreeMap;
pub use btree_set::BTreeSet;
pub use linked_list::LinkedList;
pub use vec_deque::VecDeque;
pub use string::String;
pub use vec::Vec;

Modules

binary_heap

A priority queue implemented with a binary heap.

borrow

A module for working with borrowed data.

boxed

A pointer type for heap allocation.

btree_map

A map based on a B-Tree.

btree_set

A set based on a B-Tree.

fmt

Utilities for formatting and printing Strings

linked_list

A doubly-linked list with owned nodes.

slice

A dynamically-sized view into a contiguous sequence, [T].

str

Unicode string slices.

string

A UTF-8 encoded, growable string.

vec

A contiguous growable array type with heap-allocated contents, written Vec<T> but pronounced 'vector.'

vec_deque

A double-ended queue implemented with a growable ring buffer.

range [
Experimental
]

Range syntax.

Macros

format

Use the syntax described in std::fmt to create a value of type String. See std::fmt for more information.

vec

Creates a Vec containing the arguments.

Enums

Bound

An endpoint of a range of keys.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/collections/index.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部