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.

Methods

impl LitStr
[src]
[]

[]

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
[src]
[+]

[]

A short name of the type being parsed. Read more

impl ToTokens for LitStr
[src]
[+]

[]

Write self to the given Tokens. Read more

[]

Convert self directly into a Tokens object. Read more

impl Clone for LitStr
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

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

[]

Performs the conversion.

Auto Trait Implementations

impl !Send for LitStr

impl !Sync for LitStr