Enum syn::ReturnType[][src]

pub enum ReturnType {
    Default,
    Type(RArrowBox<Type>),
}

Return type of a function signature.

This type is available if Syn is built with the "derive" or "full" feature.

Variants

Return type is not specified.

Functions default to () and closures default to type inference.

A particular type is returned.

Methods

impl ReturnType
[src]

Trait Implementations

impl Parse for ReturnType
[src]

impl ToTokens for ReturnType
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ReturnType
[src]

Formats the value using the given formatter. Read more

impl Eq for ReturnType
[src]

impl PartialEq for ReturnType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for ReturnType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for ReturnType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for ReturnType

impl !Sync for ReturnType