Skip to main content

expr

Macro expr 

Source
macro_rules! expr {
    ($e:expr) => { ... };
}
Expand description

Build a syn::Expr from an expression token: expr!(format!("{A}:{B}")). The initializer argument of an adapter’s ConstDecl::expr — allowed only for constants, where the expression binds no arguments.