[][src]Enum runestick::Component

pub enum Component {
    String(String),
    Block(usize),
    Closure(usize),
    AsyncBlock(usize),
}

The component of an item.

Variants

String(String)

A regular string component.

Block(usize)

A nested block with an index.

The block for the current function is always 0.

Closure(usize)

A closure component.

AsyncBlock(usize)

An async block, like async { }.

Trait Implementations

impl AsRef<Component> for Component[src]

impl Clone for Component[src]

impl Debug for Component[src]

impl Display for Component[src]

impl Eq for Component[src]

impl<'_, '_> From<&'_ &'_ str> for Component[src]

impl<'_> From<&'_ Component> for Component[src]

impl<'_> From<&'_ String> for Component[src]

impl<'_> From<&'_ str> for Component[src]

impl From<String> for Component[src]

impl Hash for Component[src]

impl Ord for Component[src]

impl PartialEq<Component> for Component[src]

impl PartialOrd<Component> for Component[src]

impl StructuralEq for Component[src]

impl StructuralPartialEq for Component[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,