Skip to main content

in_

Function in_ 

Source
pub fn in_(needle: Value, container: Value) -> DogeResult
Expand description

needle in container. Python-style: a List tests element membership, a Dict tests key membership, a Str tests substring. Every other container type is a catchable type error. Matched by container variant (not a wildcard) so a new Value variant forces its own decision here.