[][src]Trait full_moon::ast::owned::Owned

pub trait Owned where
    Self: Sealed, 
{ type Owned; fn owned(&self) -> Self::Owned; }

A trait for getting an owned version of a node. Refer to the module documentation for more details. This trait is sealed and cannot be implemented for types outside of full-moon

Associated Types

type Owned

What an owned version of the object looks like. Usually contains a 'static lifetime.

Loading content...

Required methods

fn owned(&self) -> Self::Owned

Returns an owned version of the object.

Loading content...

Implementations on Foreign Types

impl<T> Owned for Box<T> where
    T: Owned
[src]

type Owned = Box<<T as Owned>::Owned>

impl<T> Owned for Option<T> where
    T: Owned
[src]

type Owned = Option<<T as Owned>::Owned>

impl<T> Owned for Vec<T> where
    T: Owned
[src]

type Owned = Vec<<T as Owned>::Owned>

impl<A, B> Owned for (A, B) where
    A: Owned,
    B: Owned
[src]

type Owned = (<A as Owned>::Owned, <B as Owned>::Owned)

Loading content...

Implementors

impl Owned for TokenizerError[src]

type Owned = TokenizerError

impl<'_> Owned for AstError<'_>[src]

type Owned = AstError<'static>

impl<'_> Owned for TokenReference<'_>[src]

type Owned = TokenReference<'static>

impl<'_> Owned for TokenType<'_>[src]

type Owned = TokenType<'static>

impl<'_> Owned for Ast<'_>[src]

type Owned = Ast<'static>

impl<'_> Owned for Token<'_>[src]

type Owned = Token<'static>

impl<'_, T> Owned for Pair<'_, T> where
    T: Owned
[src]

type Owned = Pair<'static, <T as Owned>::Owned>

impl<'_, T> Owned for Punctuated<'_, T> where
    T: Owned
[src]

type Owned = Punctuated<'static, <T as Owned>::Owned>

impl<'a> Owned for BinOp<'a>[src]

type Owned = BinOp<'static>

impl<'a> Owned for Call<'a>[src]

type Owned = Call<'static>

impl<'a> Owned for Expression<'a>[src]

type Owned = Expression<'static>

impl<'a> Owned for Field<'a>[src]

type Owned = Field<'static>

impl<'a> Owned for FunctionArgs<'a>[src]

type Owned = FunctionArgs<'static>

impl<'a> Owned for Index<'a>[src]

type Owned = Index<'static>

impl<'a> Owned for LastStmt<'a>[src]

type Owned = LastStmt<'static>

impl<'a> Owned for Parameter<'a>[src]

type Owned = Parameter<'static>

impl<'a> Owned for Prefix<'a>[src]

type Owned = Prefix<'static>

impl<'a> Owned for Stmt<'a>[src]

type Owned = Stmt<'static>

impl<'a> Owned for Suffix<'a>[src]

type Owned = Suffix<'static>

impl<'a> Owned for UnOp<'a>[src]

type Owned = UnOp<'static>

impl<'a> Owned for Value<'a>[src]

type Owned = Value<'static>

impl<'a> Owned for Var<'a>[src]

type Owned = Var<'static>

impl<'a> Owned for Error<'a>[src]

type Owned = Error<'static>

impl<'a> Owned for ContainedSpan<'a>[src]

type Owned = ContainedSpan<'static>

impl<'a> Owned for Assignment<'a>[src]

type Owned = Assignment<'static>

impl<'a> Owned for BinOpRhs<'a>[src]

type Owned = BinOpRhs<'static>

impl<'a> Owned for Block<'a>[src]

type Owned = Block<'static>

impl<'a> Owned for Do<'a>[src]

type Owned = Do<'static>

impl<'a> Owned for ElseIf<'a>[src]

type Owned = ElseIf<'static>

impl<'a> Owned for FunctionBody<'a>[src]

type Owned = FunctionBody<'static>

impl<'a> Owned for FunctionCall<'a>[src]

type Owned = FunctionCall<'static>

impl<'a> Owned for FunctionDeclaration<'a>[src]

type Owned = FunctionDeclaration<'static>

impl<'a> Owned for FunctionName<'a>[src]

type Owned = FunctionName<'static>

impl<'a> Owned for GenericFor<'a>[src]

type Owned = GenericFor<'static>

impl<'a> Owned for If<'a>[src]

type Owned = If<'static>

impl<'a> Owned for LocalAssignment<'a>[src]

type Owned = LocalAssignment<'static>

impl<'a> Owned for LocalFunction<'a>[src]

type Owned = LocalFunction<'static>

impl<'a> Owned for MethodCall<'a>[src]

type Owned = MethodCall<'static>

impl<'a> Owned for NumericFor<'a>[src]

type Owned = NumericFor<'static>

impl<'a> Owned for Repeat<'a>[src]

type Owned = Repeat<'static>

impl<'a> Owned for Return<'a>[src]

type Owned = Return<'static>

impl<'a> Owned for TableConstructor<'a>[src]

type Owned = TableConstructor<'static>

impl<'a> Owned for VarExpression<'a>[src]

type Owned = VarExpression<'static>

impl<'a> Owned for While<'a>[src]

type Owned = While<'static>

Loading content...