Struct syn::LitBool [−][src]
A boolean literal: true or false.
This type is available if Syn is built with the "derive" or
"full" feature.
Fields
value: bool
span: Span
Trait Implementations
impl Synom for LitBool[src]
impl Synom for LitBoolfn parse(i: Cursor) -> PResult<Self>[src]
fn parse(i: Cursor) -> PResult<Self>fn description() -> Option<&'static str>[src]
fn description() -> Option<&'static str>A short name of the type being parsed. Read more
impl ToTokens for LitBool[src]
impl ToTokens for LitBoolfn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_tokens(&self, tokens: &mut TokenStream)Write self to the given TokenStream. Read more
fn into_token_stream(self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStreamConvert self directly into a TokenStream object. Read more
impl Debug for LitBool[src]
impl Debug for LitBoolfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LitBool[src]
impl Clone for LitBoolfn clone(&self) -> LitBool[src]
fn clone(&self) -> LitBoolReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl From<LitBool> for Lit[src]
impl From<LitBool> for Litimpl Eq for LitBool[src]
impl Eq for LitBoolimpl PartialEq for LitBool[src]
impl PartialEq for LitBoolfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Hash for LitBool[src]
impl Hash for LitBool