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 - stability_
is_ πunstable - Returns
trueis the stability is unstable and isnβt arustc_privatefeature. - synthesize_
auto_ πtrait_ and_ blanket_ impls