pub fn fits(value: &Value, ty: &Type) -> bool
Whether value is one of the type ty, as the host reads it into a widget: text shows any value as text, a whole number is a number, an Option holds nothing or a value.
value
ty
Option