Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub trait Read
The Read trait allows for reading bytes from a source.
trait alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adapter for this instance of Read.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn bytes(self) -> Bytes<Self>
Transforms this Read instance to an Iterator over its bytes.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn chain<R>(self, next: R) -> Chain<Self, R>
Creates an adapter which will chain this stream with another.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
Reads the exact number of bytes required to fill buf.
method alloc Stable since 1.6.0 Version 1.100.0-nightly
doc.rust-lang.org
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
Reads all bytes until EOF in this source, placing them into buf.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn read_to_string(&mut self, buf: &mut String) -> Result<usize>
Reads all bytes until EOF in this source, appending them to buf.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
Like read, except that it reads into a slice of buffers.
method alloc Stable since 1.36.0 Version 1.100.0-nightly
doc.rust-lang.org
fn take(self, limit: u64) -> Take<Self>
Creates an adapter which will read at most limit bytes from it.
method alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_to_string<R>(reader: R) -> crate::io::Result<crate::string::String>
Reads all bytes from a reader into a new String.
function alloc Stable since 1.65.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Bytes<R>
An iterator over u8 values of a reader.
struct alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Lines<B>
An iterator over the lines of an instance of BufRead.
struct alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Split<B>
An iterator over the contents of an instance of BufRead split on a particular byte.
struct alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod rc
Single-threaded reference-counting pointers. 'Rc' stands for 'Reference Counted'.
module alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Rc<T, A>
A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'.
struct alloc Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_ptr(this: &Self) -> *const T
Provides a raw pointer to the data.
associated_function alloc Stable since 1.45.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn assume_init(self) -> Rc<T, A>
Converts to Rc<T>.
method alloc Stable since 1.82.0 Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn decrement_strong_count(ptr: *const T)
Decrements the strong reference count on the Rc<T> associated with the provided pointer by one.
associated_function alloc Stable since 1.53.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn downcast<T>(self) -> Result<Rc<T, A>, Self>
Attempts to downcast the Rc<dyn Any> to a concrete type.
method alloc Stable since 1.29.0 Version 1.100.0-nightly
"I’m hesitating in cc’ing [the crate author] because I’d rather this be an educational conversation, and not a unsafety witchhunt."

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.