Skip to main content

lookup_meaning

Function lookup_meaning 

Source
pub fn lookup_meaning(token: &Token) -> Option<Stored>
Expand description

Get the “Meaning” of a token.

For active control sequences this may give the definition object (if defined) or another token (if \let) or None. Any other token is returned as is — which is what makes a \let-style comparison between a control sequence and a character token work.

Clones the stored meaning; use with_meaning when inspecting it is enough.