Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn symlink_metadata<P>(path: P) -> io::Result<Metadata>
Queries the metadata about a file without following symlinks.
function std Stable since 1.1.0 Version 1.100.0-nightly
doc.rust-lang.org
std::fs::soft_link Deprecated
pub fn soft_link<P, Q>(original: P, link: Q) -> io::Result<()>
Creates a new symbolic link on the filesystem.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_times_nofollow<P>(path: P, times: FileTimes) -> io::Result<()>
Changes the timestamps of the file or symlink at the specified path.
function std Stable since 1.100.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_times<P>(path: P, times: FileTimes) -> io::Result<()>
Changes the timestamps of the file or directory at the specified path.
function std Stable since 1.100.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_permissions<P>(path: P, perm: Permissions) -> io::Result<()>
Changes the permissions found on a file or a directory.
function std Stable since 1.1.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn rename<P, Q>(from: P, to: Q) -> io::Result<()>
Renames a file or directory to a new name, replacing the original file if to already exists.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remove_file<P>(path: P) -> io::Result<()>
Removes a file from the filesystem.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remove_dir_all<P>(path: P) -> io::Result<()>
Removes a directory at this path, after removing all its contents. Use carefully!
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn remove_dir<P>(path: P) -> io::Result<()>
Removes an empty directory.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_to_string<P>(path: P) -> io::Result<String>
Reads the entire contents of a file into a string.
function std Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_link<P>(path: P) -> io::Result<crate::path::PathBuf>
Reads a symbolic link, returning the file that the link points to.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_dir<P>(path: P) -> io::Result<ReadDir>
Returns an iterator over the entries within a directory.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read<P>(path: P) -> io::Result<Vec<u8>>
Reads the entire contents of a file into a bytes vector.
function std Stable since 1.26.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn metadata<P>(path: P) -> io::Result<Metadata>
Given a path, queries the file system to get information about a file, directory, etc.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn hard_link<P, Q>(original: P, link: Q) -> io::Result<()>
Creates a new hard link on the filesystem.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn exists<P>(path: P) -> io::Result<bool>
Returns Ok(true) if the path points at an existing entity.
function std Stable since 1.81.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn create_dir_all<P>(path: P) -> io::Result<()>
Recursively create a directory and all of its parent components if they are missing.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn create_dir<P>(path: P) -> io::Result<()>
Creates a new, empty directory at the provided path.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn copy<P, Q>(from: P, to: Q) -> io::Result<u64>
Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn canonicalize<P>(path: P) -> io::Result<crate::path::PathBuf>
Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
function std Stable since 1.5.0 Version 1.100.0-nightly
"Clippy’s Favorite Activity Is Criticizing Clippy’s Codebase"

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.