pub fn is_literal_of(kind: &ExprKind, base: BaseType) -> boolExpand description
Whether kind is a plain literal of the base type base: the closed set of
values a constant can be bound to directly (a constant’s initialiser has no
operators, calls or interpolation, static_error).