pub fn tooltip(
world: &dyn World,
document: Option<&Document>,
source: &Source,
cursor: usize,
side: Side,
) -> Option<Tooltip>
Expand description
Describe the item under the cursor.
Passing a document
(from a previous compilation) is optional, but enhances
the tooltips. Label tooltips, for instance, are only generated when the
document is available.