Skip to main content

float_number

Function float_number 

Source
pub fn float_number(
    lw: &dyn Lowerer,
    point: PointId,
) -> Result<Option<Vec<NumberSegment>>, LowerError>
Expand description

Returns the number of the float whose reference point is point, written from the counter table (COUNTERS) in the type’s counter style, without the words before it and without delimiters. Returns None where the table holds no number for the point, and where the numbering feature is not registered. The calling rule must declare a read of the counter table (float_decl declares an optional one).

§Errors

LowerError when the table cannot be read, and when the number cannot be written from its record, which does not happen in a correct run, since the numbering stage refuses a record that its counter style cannot write.