pub fn as_nullable<'a>(resolve: &'a Resolve, ty: &'a Type) -> Option<&'a Type>Expand description
Tests whether ty can be represented with null, and if it can then
the “other type” is returned. If Some is returned that means that ty
is null | <return>. If None is returned that means that null can’t
be used to represent ty.