Method
new_number
(is_float: bool, has_sign: bool, len: u32, value: f32)
Source from the content-addressed store, hash-verified
| 445 | /// Creates a [Kind::Number] token. |
| 446 | #[inline] |
| 447 | pub(crate) fn new_number(is_float: bool, has_sign: bool, len: u32, value: f32) -> Self { |
| 448 | let flags: u32 = Kind::Number as u32 | ((is_float as u32) << 5) | ((has_sign as u32) << 6); |
| 449 | Self((flags << 24) & KIND_MASK | (len & LENGTH_MASK), value.to_bits()) |
| 450 | } |
| 451 | |
| 452 | /// Creates a new [Kind::Dimension] token. |
| 453 | #[inline] |
Callers
nothing calls this directly
Tested by
no test coverage detected