Skip to main content

is_literal_of

Function is_literal_of 

Source
pub fn is_literal_of(kind: &ExprKind, base: BaseType) -> bool
Expand 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).