Skip to main content

Module search_index

Module search_index 

Source

Re-exportsยง

use std::collections::BTreeSet; ๐Ÿ”’
use std::collections::hash_map::Entry; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::string::FromUtf8Error; ๐Ÿ”’
use std::io; ๐Ÿ”’
use std::iter; ๐Ÿ”’
use ::serde::de; ๐Ÿ”’
use ::serde::de::Deserializer; ๐Ÿ”’
use ::serde::de::Error as _; ๐Ÿ”’
use ::serde::ser::SerializeSeq; ๐Ÿ”’
use ::serde::ser::Serializer; ๐Ÿ”’
use ::serde::Deserialize; ๐Ÿ”’
use ::serde::Deserialize; ๐Ÿ”’
use ::serde::Serialize; ๐Ÿ”’
use ::serde::Serialize; ๐Ÿ”’
use rustc_ast::join_path_syms; ๐Ÿ”’
use rustc_attr_ir::find_attr; ๐Ÿ”’
use rustc_data_structures::fx::FxHashMap; ๐Ÿ”’
use rustc_data_structures::fx::FxHashSet; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexMap; ๐Ÿ”’
use rustc_data_structures::thin_vec::ThinVec; ๐Ÿ”’
use rustc_hir::def_id::CrateNum; ๐Ÿ”’
use rustc_hir::def_id::DefIndex; ๐Ÿ”’
use rustc_hir::def_id::LOCAL_CRATE; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_span::def_id::DefId; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use rustc_span::symbol::Symbol; ๐Ÿ”’
use rustc_span::symbol::kw; ๐Ÿ”’
use stringdex::internals as stringdex_internals; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::clean::types::ItemId; ๐Ÿ”’
use crate::clean::types::ItemKind; ๐Ÿ”’
use crate::clean::types::Type; ๐Ÿ”’
use crate::clean::types::WherePredicate; ๐Ÿ”’
use crate::clean; ๐Ÿ”’
use crate::clean::ExternalLocation; ๐Ÿ”’
use crate::clean::utils; ๐Ÿ”’
use crate::config::ShouldMerge; ๐Ÿ”’
use crate::error::Error; ๐Ÿ”’
use crate::formats::cache::Cache; ๐Ÿ”’
use crate::formats::cache::OrphanImplItem; ๐Ÿ”’
use crate::formats::item_type::ItemType; ๐Ÿ”’
use crate::html::markdown::short_markdown_summary; ๐Ÿ”’
use crate::html::render; ๐Ÿ”’
use crate::html::render::IndexItem; ๐Ÿ”’
use crate::html::render::IndexItemFunctionType; ๐Ÿ”’
use crate::html::render::IndexItemInfo; ๐Ÿ”’
use crate::html::render::RenderType; ๐Ÿ”’
use crate::html::render::RenderTypeId; ๐Ÿ”’

Modulesยง

encode ๐Ÿ”’
serde ๐Ÿ”’

Structsยง

EntryData ๐Ÿ”’
PathData ๐Ÿ”’
SerializedSearchIndex ๐Ÿ”’
TypeData ๐Ÿ”’

Enumsยง

SerializedOptional32 ๐Ÿ”’
SerializedOptionalString ๐Ÿ”’
SimplifiedParam ๐Ÿ”’

Functionsยง

build_index ๐Ÿ”’
Builds the search index from the collected metadata
get_fn_inputs_and_outputs ๐Ÿ”’
Return the full list of types when bounds have been resolved.
get_function_type_for_search ๐Ÿ”’
get_index_type ๐Ÿ”’
get_index_type_id ๐Ÿ”’
make_nullary_fn ๐Ÿ”’
Create a fake nullary function.
simplify_fn_constraint ๐Ÿ”’
simplify_fn_type ๐Ÿ”’
The point of this function is to lower generics and types into the simplified form that the frontend search engine can use.