macro_rules! column { () => { ... };}Expand description
Expands to the column number at which it was invoked.
Withline! andfile!, these macros provide debugging information fordevelopers about the location within the source.
The expanded expression has typeu32 and is 1-based, so the first columnin each line evaluates to 1, the second to 2, etc. This is consistentwith error messages by common compilers or popular editors.The returned column isnot necessarily the line of thecolumn! invocation itself,but rather the first macro invocation leading up to the invocationof thecolumn! macro.
§Examples
column! counts Unicode code points, not bytes or graphemes. As a result, the first twoinvocations return the same value, but the third does not.