Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn precision(&self) -> Option<usize>
Returns the optionally specified precision for numeric types. Alternatively, the maximum width for string types.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sign_aware_zero_pad(&self) -> bool
Determines if the 0 flag was specified.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn sign_minus(&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 sign_plus(&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 width(&self) -> Option<usize>
Returns the optionally specified integer width that the output should be.
method core Stable since 1.5.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result
Glue for usage of the write! macro with implementors of this trait.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_str(&mut self, data: &str) -> Result
Writes some data to the underlying buffer contained within this formatter.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait LowerExp
e 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 LowerHex
x 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 Octal
o 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 Pointer
p 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 type Result = result::Result<(), Error>
The type returned by formatter methods.
type_alias core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait UpperExp
E 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 UpperHex
X 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
"This is the difference in approaches of the two languages. In C++ if the code is vulnerable, the blame is on the programmer. In Rust if the code is vu..."

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.