Skip to main content

Module type_ids

Module type_ids 

Source
Expand description

Resolved DefIds of standard-library types used by verification.

ยงAgent Rules

Keep this module limited to resolving standard-library type identities from rustc lang items, diagnostic items, and definition paths. Do not depend on other RAPx modules.

Re-exportsยง

use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use rustc_public::CrateDef; ๐Ÿ”’
use rustc_public::rustc_internal; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::sync::OnceLock; ๐Ÿ”’

Macrosยง

type_predicates ๐Ÿ”’

Enumsยง

StdAdtType ๐Ÿ”’

Staticsยง

TYPES ๐Ÿ”’

Functionsยง

classify_type ๐Ÿ”’
def_ids_for_type ๐Ÿ”’
init
init_types ๐Ÿ”’
is_index_range
Whether this is the standard IndexRange type.
is_maybe_uninit_type
Whether this is core::mem::MaybeUninit.
is_std_box
Whether this is alloc::boxed::Box.
is_std_cstring
Whether this is alloc::ffi::CString.
is_std_iter_or_itermut
Whether this is core::slice::Iter or IterMut.
is_std_nonnull
Whether this is core::ptr::NonNull.
is_std_ordering
Whether this is core::cmp::Ordering.
is_std_rc
Whether this is alloc::rc::Rc.
is_std_string
Whether this is alloc::string::String.
is_std_sync_primitive
Whether this is a standard Mutex, RwLock, OnceLock, or atomic type.
is_std_vec
Whether this is alloc::vec::Vec.
types ๐Ÿ”’