pub fn static_literal(literal: &'static str) -> StaticLiteral
A formatter from a static literal.
This is typically more efficient than using append() with a string directly, since it can avoid copying the string.
use genco::prelude::*; use genco::tokens; let mut tokens = Tokens::<()>::new(); tokens.append(tokens::static_literal("hello"));