Struct syn_expand_use::ExpandedItemUse [] [src]

pub struct ExpandedItemUse {
    pub attrs: Vec<Attribute>,
    pub vis: Visibility,
    pub use_token: Use,
    pub brace_token: Brace,
    pub items: Punctuated<ExpandedUseItem, Comma>,
    pub semi_token: Semi,
}

An expanded [ItemUse].

Fields

The attributes on the [ItemUse].

The visibility of the [ItemUse].

The use token.

A brace token around the expanded items.

The expanded items.

The semicolon.

Methods

impl ExpandedItemUse
[src]

[src]

Expands all the item-level [ItemUse]s in the given file, with paths relative to the file.

This only includes [ItemUse] statements at the top level or within ItemMods. It also prunes empty [ItemUse]s

[src]

Expands the given [ItemUse], assuming the given prefix.

[src]

Expands the given [ItemUse].

Trait Implementations

impl Clone for ExpandedItemUse
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ExpandedItemUse
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ExpandedItemUse
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ExpandedItemUse
[src]

impl Hash for ExpandedItemUse
[src]

[src]

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

1.3.0
[src]

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

impl From<ItemUse> for ExpandedItemUse
[src]

[src]

Performs the conversion.

impl Extend<ExpandedItemUse> for ExpandedItemUse
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl FromIterator<ExpandedItemUse> for ExpandedItemUse
[src]

[src]

Creates a value from an iterator. Read more

impl ToTokens for ExpandedItemUse
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

Auto Trait Implementations