Struct rune::ast::FieldAssign[][src]

pub struct FieldAssign {
    pub key: ObjectKey,
    pub assign: Option<(Colon, Expr)>,
}

A literal object field.

Fields

key: ObjectKey

The key of the field.

assign: Option<(Colon, Expr)>

The assigned expression of the field.

Trait Implementations

impl Clone for FieldAssign[src]

impl Debug for FieldAssign[src]

impl Eq for FieldAssign[src]

impl Parse for FieldAssign[src]

Parse an object literal.

Examples

use rune::{testing, ast};

testing::roundtrip::<ast::FieldAssign>("\"foo\": 42");
testing::roundtrip::<ast::FieldAssign>("\"foo\": 42");
testing::roundtrip::<ast::FieldAssign>("\"foo\": 42");

impl PartialEq<FieldAssign> for FieldAssign[src]

impl Spanned for FieldAssign[src]

impl StructuralEq for FieldAssign[src]

impl StructuralPartialEq for FieldAssign[src]

impl ToTokens for FieldAssign[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, 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.