Struct rune::ast::ExprVec [−][src]
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]
parser: &mut Parser<'_>,
attributes: Vec<Attribute>
) -> Result<Self, ParseError>
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]
fn parse(parser: &mut Parser<'_>) -> Result<Self, ParseError>
[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]
fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,