Skip to main content

Module crate_def

Module crate_def 

Source
Expand description

Module that define a common trait for things that represent a crate definition, such as, a function, a trait, an enum, and any other definitions.

Re-exportsΒ§

use crate::ty::GenericArgs; πŸ”’
use crate::ty::Span; πŸ”’
use crate::ty::Ty; πŸ”’
use crate::ty::index_impl; πŸ”’
use crate::Crate; πŸ”’
use crate::Symbol; πŸ”’
use crate::ThreadLocalIndex; πŸ”’
use crate::ThreadLocalIndex; πŸ”’
use crate::with; πŸ”’

MacrosΒ§

crate_def πŸ”’
crate_def_with_ty πŸ”’

StructsΒ§

Attribute
DefId
A unique identification number for each item accessible for the current compilation unit.

TraitsΒ§

CrateDef
A trait for retrieving information about a particular definition.
CrateDefType
A trait that can be used to retrieve a definition’s type.