Add some docs to rustdoc::clean::inline and def_id functions

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Lzu Tao 2020-09-16 09:15:51 +00:00
parent d890e64dff
commit 63e72348d1
2 changed files with 4 additions and 0 deletions

View file

@ -159,6 +159,7 @@ impl DefId {
DefId { krate: LOCAL_CRATE, index }
}
/// Returns whether the item is defined in the crate currently being compiled.
#[inline]
pub fn is_local(self) -> bool {
self.krate == LOCAL_CRATE