Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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 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 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 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_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_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_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 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 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 struct Formatter<'a>
Configuration for formatting.
struct 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
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 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 Binary
b formatting.
trait core Stable since 1.0.0 Version 1.100.0-nightly
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 struct Arguments<'a>
This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum Alignment
Possible alignments returned by Formatter::align
enum core Stable since 1.28.0 Version 1.100.0-nightly
"Rust doesn't give you good errors, it gives you control over errors."

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.