Struct syntex_syntax::tokenstream::Delimited [] [src]

pub struct Delimited {
    pub delim: DelimToken,
    pub open_span: Span,
    pub tts: Vec<TokenTree>,
    pub close_span: Span,
}

A delimited sequence of token trees

Fields

The type of delimiter

The span covering the opening delimiter

The delimited sequence of token trees

The span covering the closing delimiter

Methods

impl Delimited
[src]

Returns the opening delimiter as a token.

Returns the closing delimiter as a token.

Returns the opening delimiter as a token tree.

Returns the closing delimiter as a token tree.

Returns the token trees inside the delimiters.

Trait Implementations

impl Clone for Delimited
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Delimited
[src]

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

This method tests for !=.

impl Eq for Delimited
[src]

impl Encodable for Delimited
[src]

Serialize a value using an Encoder.

impl Decodable for Delimited
[src]

Deserialize a value using a Decoder.

impl Hash for Delimited
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Delimited
[src]

Formats the value using the given formatter.