[][src]Struct rune::ast::PatVec

pub struct PatVec {
    pub open: OpenBracket,
    pub items: Vec<(Box<Pat>, Option<Comma>)>,
    pub open_pattern: Option<DotDot>,
    pub close: CloseBracket,
}

An array pattern.

Fields

open: OpenBracket

The open bracket.

items: Vec<(Box<Pat>, Option<Comma>)>

The numbers matched against.

open_pattern: Option<DotDot>

Indicates if the pattern is open or not.

close: CloseBracket

The close bracket.

Implementations

impl PatVec[src]

pub fn span(&self) -> Span[src]

Get the span of the pattern.

Trait Implementations

impl Clone for PatVec[src]

impl Debug for PatVec[src]

impl Parse for PatVec[src]

Auto Trait Implementations

impl RefUnwindSafe for PatVec

impl Send for PatVec

impl Sync for PatVec

impl Unpin for PatVec

impl UnwindSafe for PatVec

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, 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>,