Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn weak_count(&self) -> usize
Gets an approximation of the number of Weak pointers pointing to this allocation.
method alloc Stable since 1.41.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod task
Types and Traits for working with asynchronous tasks.
module alloc Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Wake
The implementation of waking a task on an executor.
trait alloc Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
fn wake(self: Arc<Self>)
Wake this task.
method alloc Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
fn wake_by_ref(self: &Arc<Self>)
Wake this task without consuming the waker.
method alloc Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro vec!
Creates a Vec containing the arguments.
macro alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod vec
A contiguous growable array type with heap-allocated contents, written Vec<T>.
module alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Vec<T, A>
A contiguous growable array type, written as Vec<T>, short for 'vector'.
struct alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn append(&mut self, other: &mut Self)
Moves all the elements of other into self, leaving other empty.
method alloc Stable since 1.4.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut_ptr(&mut self) -> *mut T
Returns a raw mutable pointer to the vector's buffer, or a dangling raw pointer valid for zero sized reads if the vector didn't allocate.
method alloc Stable since 1.37.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut_slice(&mut self) -> &mut [T]
Extracts a mutable slice of the entire vector.
method alloc Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_ptr(&self) -> *const T
Returns a raw pointer to the vector's buffer, or a dangling raw pointer valid for zero sized reads if the vector didn't allocate.
method alloc Stable since 1.37.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_slice(&self) -> &[T]
Extracts a slice containing the entire vector.
method alloc Stable since 1.7.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn capacity(&self) -> usize
Returns the total number of elements the vector can hold without reallocating.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn clear(&mut self)
Clears the vector, removing all values.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn dedup(&mut self)
Removes consecutive repeated elements in the vector according to the PartialEq trait implementation.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn dedup_by<F>(&mut self, same_bucket: F)
Removes all but the first of consecutive elements in the vector that are "equal" according to the given predicate function.
method alloc Stable since 1.16.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn dedup_by_key<F, K>(&mut self, key: F)
Removes all but the first of consecutive elements in the vector that resolve to the same key.
method alloc Stable since 1.16.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A>
Removes the subslice indicated by the given range from the vector, returning a double-ended iterator over the removed subslice.
method alloc Stable since 1.6.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn extend_from_slice(&mut self, other: &[T])
Clones and appends all elements in a slice to the Vec.
method alloc Stable since 1.6.0 Version 1.100.0-nightly
"This time, there were two crates and one quote, which is not much, but ok. Keep it up, folks!"

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.