Struct syn::PatLit [−][src]
A literal pattern: 0
.
This holds an Expr
rather than a Lit
because negative numbers
are represented as an Expr::Unary
.
This type is available if Syn is built with the "full"
feature.
Fields
expr: Box<Expr>
Trait Implementations
impl Synom for PatLit
[src]
[+]
impl Synom for PatLit
impl ToTokens for PatLit
[src]
[+]
impl ToTokens for PatLit
impl Clone for PatLit
[src]
[+]
impl Clone for PatLit
impl From<PatLit> for Pat
[src]
[+]
impl From<PatLit> for Pat