Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered contents reach their destination.
method core 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 Write.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Write
A trait for objects which are byte-oriented sinks.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn sink() -> Sink
Creates an instance of a writer which will successfully consume all data.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn repeat(byte: u8) -> Repeat
Creates an instance of a reader that infinitely repeats one byte.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn empty() -> Empty
Creates a value that is always at EOF for reads, and ignores all data written.
function core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Take<T>
Reader adapter which limits the bytes read from an underlying reader.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Sink
A writer which will move data into the void.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Repeat
A reader which yields one byte over and over and over and over and over and...
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Empty
Empty ignores any data written via Write, and will always be empty (returning zero bytes) when read via Read.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Chain<T, U>
Adapter to chain together two readers.
struct core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum SeekFrom
Enumeration of possible methods to seek within an I/O object.
enum core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn stream_position(&mut self) -> Result<u64>
Returns the current seek position from the start of the stream.
method core Stable since 1.51.0 Version 1.100.0-nightly
doc.rust-lang.org
fn seek_relative(&mut self, offset: i64) -> Result<()>
Seeks relative to the current position.
method core Stable since 1.80.0 Version 1.100.0-nightly
doc.rust-lang.org
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream.
method core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
fn rewind(&mut self) -> Result<()>
Rewind to the beginning of a stream.
method core Stable since 1.55.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait Seek
The Seek trait provides a cursor which can be moved within a stream of bytes.
trait core Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IoSliceMut<'a>
A buffer type used with Read::read_vectored.
struct core Stable since 1.36.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct IoSlice<'a>
A buffer type used with Write::write_vectored.
struct core Stable since 1.36.0 Version 1.100.0-nightly
doc.rust-lang.org
pub type Result<T> = result::Result<T, Error>
A specialized Result type for I/O operations.
type_alias core Stable since 1.0.0 Version 1.100.0-nightly
"I had many questions during the example implementations but "where do I find that" was none of them. [...] Thanks, docs team, you are doing great work..."

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.