Struct syn::LitBool[][src]

pub struct LitBool {
    pub value: bool,
    pub span: Span,
}
[]

A boolean literal: true or false.

This type is available if Syn is built with the "derive" or "full" feature.

Fields

Trait Implementations

impl Token for LitBool
[src]
[+]

impl Parse for LitBool
[src]
[+]

impl ToTokens for LitBool
[src]
[+]

[]

Write self to the given TokenStream. Read more

[]

Convert self directly into a TokenStream object. Read more

impl Clone for LitBool
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl From<LitBool> for Lit
[src]
[+]

[]

Performs the conversion.

Auto Trait Implementations

impl !Send for LitBool

impl !Sync for LitBool