Skip to main content

coerce

Function coerce 

Source
pub fn coerce(spec: impl Into<Spec>) -> Node
Expand description

The value is converted to the node’s kind where the conversion is unambiguous, before the type check.