Skip to main content

is_object_like_type

Function is_object_like_type 

Source
pub fn is_object_like_type(types: &dyn TypeDatabase, type_id: TypeId) -> bool
Expand description

Check if a type is an object-like type (suitable for typeof “object”).

Returns true for: Object, ObjectWithIndex, Array, Tuple, Mapped, ReadonlyType (of object)