Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn insert(self, value: V) -> &'a mut V
Sets the value of the entry with the VacantEntry's key, and returns a mutable reference to it.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct VacantEntry<'a, K, V, A>
A view into a vacant entry in a HashMap. It is part of the Entry enum.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remove_entry(self) -> (K, V)
Take the ownership of the key and value from the map.
method std Stable since 1.12.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remove(self) -> V
Takes the value out of the entry, and returns it.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn key(&self) -> &K
Gets a reference to the key in the entry.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn into_mut(self) -> &'a mut V
Converts the OccupiedEntry into a mutable reference to the value in the entry with a lifetime bound to the map itself.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn insert(&mut self, value: V) -> V
Sets the value of the entry, and returns the entry's old value.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn get_mut(&mut self) -> &mut V
Gets a mutable reference to the value in the entry.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn get(&self) -> &V
Gets a reference to the value in the entry.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct OccupiedEntry<'a, K, V, A>
A view into an occupied entry in a HashMap. It is part of the Entry enum.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Keys<'a, K, V>
An iterator over the keys of a HashMap.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IterMut<'a, K, V>
A mutable iterator over the entries of a HashMap.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Iter<'a, K, V>
An iterator over the entries of a HashMap.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoValues<K, V, A>
An owning iterator over the values of a HashMap.
struct std Stable since 1.54.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoKeys<K, V, A>
An owning iterator over the keys of a HashMap.
struct std Stable since 1.54.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoIter<K, V, A>
An owning iterator over the entries of a HashMap.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn with_hasher(hash_builder: S) -> HashMap<K, V, S>
Creates an empty HashMap which will use the given hash builder to hash keys.
associated_function std Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn with_capacity_and_hasher(capacity: usize, hasher: S) -> HashMap<K, V, S>
Creates an empty HashMap with at least the specified capacity, using hasher to hash the keys.
associated_function std Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn with_capacity(capacity: usize) -> HashMap<K, V, RandomState>
Creates an empty HashMap with at least the specified capacity.
associated_function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>
An iterator visiting all values mutably in arbitrary order. The iterator element type is &'a mut V.
method std Stable since 1.10.0 Version 1.100.0-nightly
"I think that there are a nonzero number of people who are experts in the field who would genuinely respond to "how does C work?" with "it doesn't, nex..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.