[][src]Struct rune::ast::DeclImpl

pub struct DeclImpl {
    pub impl_: Impl,
    pub path: Path,
    pub open: OpenBrace,
    pub functions: Vec<DeclFn>,
    pub close: CloseBrace,
}

An impl declaration.

Fields

impl_: Impl

The impl keyword.

path: Path

Path of the implementation.

open: OpenBrace

The open brace.

functions: Vec<DeclFn>

The collection of functions.

close: CloseBrace

The close brace.

Implementations

impl DeclImpl[src]

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

The span of the declaration.

Trait Implementations

impl Clone for DeclImpl[src]

impl Debug for DeclImpl[src]

impl Parse for DeclImpl[src]

Parse implementation for an impl.

Examples

use rune::{parse_all, ast};

parse_all::<ast::DeclImpl>("impl Foo {}").unwrap();
parse_all::<ast::DeclImpl>("impl Foo { fn test(self) { } }").unwrap();

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,