Add some docs to rustdoc::clean::inline and def_id functions
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
parent
d890e64dff
commit
63e72348d1
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue