Struct syn::LitStr[][src]

pub struct LitStr { /* fields omitted */ }

A UTF-8 string literal: "foo".

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


impl LitStr

Parse a syntax tree node from the content of this string literal.

All spans in the syntax tree will point to the span of this LitStr.

Trait Implementations

impl Synom for LitStr

A short name of the type being parsed. Read more

impl ToTokens for LitStr

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for LitStr

Formats the value using the given formatter. Read more

impl Clone for LitStr

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<LitStr> for Lit

Performs the conversion.

impl Eq for LitStr

impl PartialEq for LitStr

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for LitStr

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl !Send for LitStr

impl !Sync for LitStr