Enum syn::ReturnType[][src]

pub enum ReturnType {

Return type of a function signature.

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


Return type is not specified.

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

A particular type is returned.


impl ReturnType

Trait Implementations

impl Synom for ReturnType

A short name of the type being parsed. Read more

impl ToTokens for ReturnType

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ReturnType

Formats the value using the given formatter. Read more

impl Eq for ReturnType

impl PartialEq for ReturnType

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

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

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