Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn err(self) -> Option<E>
Converts from Result<T, E> to Option<E>.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn copied(self) -> Result<T, E>
Maps a Result<&T, E> to a Result<T, E> by copying the contents of the Ok part.
method core Stable since 1.59.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn cloned(self) -> Result<T, E>
Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the Ok part.
method core Stable since 1.59.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_ref(&self) -> Result<&T, &E>
Converts from &Result<T, E> to Result<&T, &E>.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut(&mut self) -> Result<&mut T, &mut E>
Converts from &mut Result<T, E> to Result<&mut T, &mut E>.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_deref_mut(&mut self) -> Result<&mut <T as >::Target, &mut E>
Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.
method core Stable since 1.47.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_deref(&self) -> Result<&<T as >::Target, &E>
Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.
method core Stable since 1.47.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn and_then<U, F>(self, op: F) -> Result<U, E>
Calls op if the result is Ok, otherwise returns the Err value of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn and<U>(self, res: Result<U, E>) -> Result<U, E>
Returns res if the result is Ok, otherwise returns the Err value of self.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum Result<T, E>
Result is a type that represents either success (Ok) or failure (Err).
enum core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IterMut<'a, T>
An iterator over a mutable reference to the Ok variant of a Result.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Iter<'a, T>
An iterator over a reference to the Ok variant of a Result.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IntoIter<T>
An iterator over the value in a Ok variant of a Result.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod result
Error handling with the Result type.
module core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn static_ref(r: &'static T) -> Pin<&'static T>
Gets a pinning reference from a &'static reference.
associated_function core Stable since 1.61.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn static_mut(r: &'static mut T) -> Pin<&'static mut T>
Gets a pinning mutable reference from a static mutable reference.
associated_function core Stable since 1.61.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn map_unchecked_mut<U, F>(self, func: F) -> Pin<&'a mut U>
Constructs a new pin by mapping the interior value.
method core Stable since 1.33.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn map_unchecked<U, F>(self, func: F) -> Pin<&'a U>
Constructs a new pin by mapping the interior value.
method core Stable since 1.33.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn into_ref(self) -> Pin<&'a T>
Converts this Pin<&mut T> into a Pin<&T> with the same lifetime.
method core Stable since 1.33.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn get_unchecked_mut(self) -> &'a mut T
Gets a mutable reference to the data inside of this Pin.
method core Stable since 1.33.0 Version 1.100.0-nightly
"Rust does best when we're ambitious"

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.