[][src]Struct full_moon::ast::Return

pub struct Return<'a> { /* fields omitted */ }

A return statement

Implementations

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

pub fn new() -> Self[src]

Creates a new empty Return Default return token is followed by a single space

pub fn token(&self) -> &TokenReference<'a>[src]

The return token

pub fn returns(&self) -> &Punctuated<'a, Expression<'a>>[src]

The values being returned

pub fn with_token(self, token: Cow<'a, TokenReference<'a>>) -> Self[src]

Returns a new Return with the given return token

pub fn with_returns(self, returns: Punctuated<'a, Expression<'a>>) -> Self[src]

Returns a new Return with the given punctuated sequence

Trait Implementations

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

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

impl<'_> Default for Return<'_>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Return<'a>[src]

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

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

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

type Owned = Return<'static>

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Return<'a>

impl<'a> Send for Return<'a>

impl<'a> Sync for Return<'a>

impl<'a> Unpin for Return<'a>

impl<'a> UnwindSafe for Return<'a>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[src]

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.