Skip to main content

lookup_value

Function lookup_value 

Source
pub fn lookup_value(key: &str) -> Option<Stored>
Expand description

The value bound to key, or None when nothing is bound — Perl’s LookupValue.

Returns whatever Stored variant was assigned, so a caller that knows the type usually wants lookup_string / lookup_number / lookup_bool instead. Clones the value; with_value lends it when inspecting is enough.