Skip to main content

is_compatible

Function is_compatible 

Source
pub fn is_compatible(expected: &Type, found: &Type) -> bool
Expand description

Check if two types are compatible under gradual typing. any is compatible with everything. none is compatible with option<T>.