Skip to main content

lookup_string

Function lookup_string 

Source
pub fn lookup_string<A: Accessor>(
    registry: &Registry,
    accessor: &A,
    concept: Concept,
) -> Option<String>
Expand description

Look up a concept as a String. Mirrors upstream LookupString.

Non-string-typed tags are stringified via format! to match upstream’s strconv.FormatInt(_, 10) and strconv.FormatFloat(_, 'f', -1, 64) output.