Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn borrow(&self) -> &Borrowed
Immutably borrows from an owned value.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Borrow<Borrowed>
A trait for borrowing data.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod borrow
Utilities for working with borrowed data.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn then_some<T>(self, t: T) -> Option<T>
Returns Some(t) if the bool is true, or None otherwise.
method core Stable since 1.62.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn then<T, F>(self, f: F) -> Option<T>
Returns Some(f()) if the bool is true, or None otherwise.
method core Stable since 1.50.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ok_or_else<E, F>(self, f: F) -> Result<(), E>
Returns Ok(()) if the bool is true, or Err(f()) otherwise.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn ok_or<E>(self, err: E) -> Result<(), E>
Returns Ok(()) if the bool is true, or Err(err) otherwise.
method core Stable since 1.98.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive bool
The boolean type.
primitive core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert_ne!
Asserts that two expressions are not equal to each other (using PartialEq).
macro core Stable since 1.13.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert_eq!
Asserts that two expressions are equal to each other (using PartialEq).
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub macro assert!
Asserts that a boolean expression is true at runtime.
macro core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn escape_default(c: u8) -> EscapeDefault
Returns an iterator that produces an escaped version of a u8.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct EscapeDefault
An iterator over the escaped version of a byte.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod ascii
Operations on ASCII strings and characters.
module core Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn repeat<T, const N: usize>(val: T) -> [T; N]
Creates an array of type [T; N] by repeatedly cloning a value.
function core Stable since 1.91.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn map<F, U>(self, f: F) -> [U; N]
Returns an array of the same size as self, with function f applied to each element in order.
method core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn new(array: [T; N]) -> Self
Creates a new iterator over the given array.
associated_function core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_slice(&self) -> &[T]
Returns an immutable slice of all elements that have not been yielded yet.
method core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut_slice(&mut self) -> &mut [T]
Returns a mutable slice of all elements that have not been yielded yet.
method core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoIter<T, const N: usize>
A by-value array iterator.
struct core Stable since 1.51.0 Version 1.100.0-nightly
"Think about how your contributions may be received before you send them. This kind of thought, true thought, with real emotion and reasoning, is the o..."

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.