Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn as_str(&self) -> Option<&'static str>
Gets the formatted string, if it has no arguments to be formatted at runtime.
method core Stable since 1.52.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Binary
b formatting.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Debug
? formatting.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Display
Format trait for an empty format, {}.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Error
The error type which is returned from formatting a message into a stream.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Formatter<'a>
Configuration for formatting.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn align(&self) -> Option<Alignment>
Returns a flag indicating what form of alignment was requested.
method core Stable since 1.28.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn alternate(&self) -> bool
Determines if the # flag was specified.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_list<'b>(&'b mut self) -> DebugList<'b, 'a>
Creates a DebugList builder designed to assist with creation of fmt::Debug implementations for list-like structures.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_map<'b>(&'b mut self) -> DebugMap<'b, 'a>
Creates a DebugMap builder designed to assist with creation of fmt::Debug implementations for map-like structures.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a>
Creates a DebugSet builder designed to assist with creation of fmt::Debug implementations for set-like structures.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_struct<'b>(&'b mut self, name: &str) -> DebugStruct<'b, 'a>
Creates a DebugStruct builder designed to assist with creation of fmt::Debug implementations for structs.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a>
Creates a DebugTuple builder designed to assist with creation of fmt::Debug implementations for tuple structs.
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn fill(&self) -> char
Returns the character used as 'fill' whenever there is alignment.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn flags(&self) -> u32
Returns flags for formatting.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn pad(&mut self, s: &str) -> Result
Takes a string slice and emits it to the internal buffer after applying the relevant formatting flags specified.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn pad_integral(&mut self, is_nonnegative: bool, prefix: &str, buf: &str) -> Result
Performs the correct padding for an integer which has already been emitted into a str. The str should not contain the sign for the integer, that will be added by this method.
method core Stable since 1.0.0 Version 1.100.0-nightly
"After all, Rust only became as good as it is by going through a rather drastic transformation. At one point it had a GC and Green Threads, famously. T..."

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.