Trait rustdoc::clean::types::GetDefId [−][src]
pub(crate) trait GetDefId {
fn def_id(&self) -> Option<DefId>;
fn def_id_full(&self, cache: &Cache) -> Option<DefId>;
}
Required methods
Use this method to get the DefId
of a clean
AST node.
This will return None
when called on a primitive clean::Type
.
Use Self::def_id_full
if you want to include primitives.
fn def_id_full(&self, cache: &Cache) -> Option<DefId>
fn def_id_full(&self, cache: &Cache) -> Option<DefId>
Use this method to get the DefId of a clean AST node, including PrimitiveTypes.
See Self::def_id
for more.