Macro syn::keyword[][src]

macro_rules! keyword {
    ($i:expr, as) => { ... };
    ($i:expr, async) => { ... };
    ($i:expr, auto) => { ... };
    ($i:expr, box) => { ... };
    ($i:expr, break) => { ... };
    ($i:expr, Self) => { ... };
    ($i:expr, catch) => { ... };
    ($i:expr, const) => { ... };
    ($i:expr, continue) => { ... };
    ($i:expr, crate) => { ... };
    ($i:expr, default) => { ... };
    ($i:expr, do) => { ... };
    ($i:expr, dyn) => { ... };
    ($i:expr, else) => { ... };
    ($i:expr, enum) => { ... };
    ($i:expr, extern) => { ... };
    ($i:expr, fn) => { ... };
    ($i:expr, for) => { ... };
    ($i:expr, if) => { ... };
    ($i:expr, impl) => { ... };
    ($i:expr, in) => { ... };
    ($i:expr, let) => { ... };
    ($i:expr, loop) => { ... };
    ($i:expr, macro) => { ... };
    ($i:expr, match) => { ... };
    ($i:expr, mod) => { ... };
    ($i:expr, move) => { ... };
    ($i:expr, mut) => { ... };
    ($i:expr, pub) => { ... };
    ($i:expr, ref) => { ... };
    ($i:expr, return) => { ... };
    ($i:expr, self) => { ... };
    ($i:expr, static) => { ... };
    ($i:expr, struct) => { ... };
    ($i:expr, super) => { ... };
    ($i:expr, trait) => { ... };
    ($i:expr, type) => { ... };
    ($i:expr, union) => { ... };
    ($i:expr, unsafe) => { ... };
    ($i:expr, use) => { ... };
    ($i:expr, where) => { ... };
    ($i:expr, while) => { ... };
    ($i:expr, yield) => { ... };
}

Parse a single Rust keyword token.

See the token module documentation for details and examples.

This macro is available if Syn is built with the "parsing" feature.