Struct rune::ast::ExprLit[][src]

pub struct ExprLit {
    pub attributes: Vec<Attribute>,
    pub lit: Lit,
}

A literal expression.

Fields

attributes: Vec<Attribute>

Attributes associated with the literal expression.

lit: Lit

The literal in the expression.

Implementations

impl ExprLit[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 ExprLit[src]

impl Debug for ExprLit[src]

impl Eq for ExprLit[src]

impl Parse for ExprLit[src]

impl PartialEq<ExprLit> for ExprLit[src]

impl Spanned for ExprLit[src]

impl StructuralEq for ExprLit[src]

impl StructuralPartialEq for ExprLit[src]

impl ToTokens for ExprLit[src]

Auto Trait Implementations

impl RefUnwindSafe for ExprLit

impl Send for ExprLit

impl Sync for ExprLit

impl Unpin for ExprLit

impl UnwindSafe for ExprLit

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.