def width_of

bend-lint-rules@0.2.0.0 · layout/format.bend:2423

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

2423def width_of(value: Maybe<&2, Lint.Value>) -> Maybe<&2, U32>:
2424  match value:
2425    case Some{Lint.Num{n}}:
2426      Some{n}
2427    case _:
2428      None{}

Uses (3)

Used by (1)