literal_str

Function literal_str 

Source
pub fn literal_str(c: &Core) -> Option<Arc<str>>
Expand description

The string this expression is, when it is written as one.

Deliberately not an evaluator and deliberately not a constant folder: the one caller is the host of an outbound call, and “the host is written at the call site” is the rule that makes an egress policy derivable. A let that happens to bind a literal is not written at the call site, and reading through one would make the rule depend on how much folding the compiler currently does.