Re-exportsยง
use std::fmt;๐use std::fmt::Display;๐use std::fmt::Write as _;๐use std::sync::LazyLock as Lazy;๐use std::ascii;๐use std::mem;๐use rustc_ast as ast;๐use rustc_ast::join_path_idents;๐use rustc_ast::token::Token;๐use rustc_ast::token::TokenKind;๐use rustc_ast::tokenstream::TokenTree;๐use rustc_attr_ir::DocAttribute;๐use rustc_attr_ir::find_attr;๐use rustc_data_structures::thin_vec::ThinVec;๐use rustc_data_structures::thin_vec::thin_vec;๐use rustc_hir as hir;๐use rustc_hir::def::DefKind;๐use rustc_hir::def::Res;๐use rustc_hir::def_id::DefId;๐use rustc_hir::def_id::LOCAL_CRATE;๐use rustc_hir::def_id::LocalDefId;๐use rustc_metadata::rendered_const;๐use rustc_middle::mir;๐use rustc_middle::ty;๐use rustc_middle::ty::GenericArgKind;๐use rustc_middle::ty::TyCtxt;๐use rustc_middle::ty::TypeVisitableExt;๐use rustc_span::def_id::ModId;๐use rustc_span::symbol::Symbol;๐use rustc_span::symbol::kw;๐use rustc_span::symbol::sym;๐use tracing::debug;๐use tracing::warn;๐use crate::clean::auto_trait::synthesize_auto_trait_impls;๐use crate::clean::blanket_impl::synthesize_blanket_impls;๐use crate::clean::render_macro_matchers::render_macro_matcher;๐use crate::clean::AssocItemConstraint;๐use crate::clean::AssocItemConstraintKind;๐use crate::clean::AssocType;๐use crate::clean::Crate;๐use crate::clean::ExternalCrate;๐use crate::clean::Generic;๐use crate::clean::GenericArg;๐use crate::clean::GenericArgs;๐use crate::clean::ImportSource;๐use crate::clean::Item;๐use crate::clean::ItemKind;๐use crate::clean::Lifetime;๐use crate::clean::Path;๐use crate::clean::PathSegment;๐use crate::clean::Primitive;๐use crate::clean::PrimitiveType;๐use crate::clean::Term;๐use crate::clean::Type;๐use crate::clean::clean_doc_module;๐use crate::clean::clean_middle_const;๐use crate::clean::clean_middle_region;๐use crate::clean::clean_middle_ty;๐use crate::clean::inline;๐use crate::core::DocContext;๐use crate::display::Joined as _;๐use crate::formats::item_type::ItemType;๐
Macrosยง
- debug_
assert_ matches - Asserts that an expression matches the provided pattern.
Constantsยง
- DOC_
RUST_ ๐LANG_ ORG_ VERSION - A link to
doc.rust-lang.orgthat includes the channel name. Use this instead of manual links so that the channel is consistent.
Staticsยง
- RUSTDOC_
VERSION ๐
Functionsยง
- build_
deref_ ๐target_ impls - can_
elide_ ๐generic_ arg - Check if the generic argument
actualcoincides with thedefaultand can therefore be elided. - clean_
middle_ ๐generic_ args - clean_
middle_ ๐generic_ args_ with_ constraints - clean_
middle_ ๐path - display_
macro_ ๐source - enter_
impl_ ๐trait - find_
nearest_ ๐parent_ module - Find the nearest parent module of a [
DefId]. - format_
integer_ ๐with_ underscore_ sep - has_
doc_ ๐flag - This function exists because it runs on
rustc_attr_ir::Attributeswhereas the other is aclean::Attributesmethod. - inherits_
doc_ ๐hidden - is_
literal_ ๐expr - krate ๐
- name_
from_ ๐pat - print_
const ๐ - print_
const_ ๐with_ custom_ print_ scalar - print_
evaluated_ ๐const - qpath_
to_ ๐string - register_
res ๐ - If
reshas a documentation page associated, store it in the cache. - render_
macro_ ๐arms - Render a sequence of macro arms in a format suitable for displaying to the user as part of an item declaration.
- resolve_
type ๐ - Given a type Path, resolve it to a Type using the TyCtxt
- resolve_
use_ ๐source - should_
ignore_ ๐res - synthesize_
auto_ ๐trait_ and_ blanket_ impls