Struct rune::ast::ExprVec[][src]

pub struct ExprVec {
    pub attributes: Vec<Attribute>,
    pub items: Bracketed<Expr, Comma>,
}

A literal vector.

Examples

use rune::{testing, ast};

testing::roundtrip::<ast::ExprVec>("[1, \"two\"]");
testing::roundtrip::<ast::ExprVec>("[1, 2,]");
testing::roundtrip::<ast::ExprVec>("[1, 2, foo()]");

Fields

attributes: Vec<Attribute>

Attributes associated with vector.

items: Bracketed<Expr, Comma>

Items in the vector.

Implementations

impl ExprVec[src]

pub fn parse_with_meta(
    parser: &mut Parser<'_>,
    attributes: Vec<Attribute>
) -> Result<Self, ParseError>
[src]

Parse #ident and attach the given meta

Trait Implementations

impl Clone for ExprVec[src]

impl Debug for ExprVec[src]

impl Eq for ExprVec[src]

impl Parse for ExprVec[src]

impl PartialEq<ExprVec> for ExprVec[src]

impl Spanned for ExprVec[src]

impl StructuralEq for ExprVec[src]

impl StructuralPartialEq for ExprVec[src]

impl ToTokens for ExprVec[src]

Auto Trait Implementations

impl RefUnwindSafe for ExprVec

impl Send for ExprVec

impl Sync for ExprVec

impl Unpin for ExprVec

impl UnwindSafe for ExprVec

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.