Enum syn::ReturnType [−][src]
This is supported on crate features
full
or derive
only.Return type of a function signature.
This type is available only 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.
Implementations
impl ReturnType
[src]
impl ReturnType
[src]pub fn without_plus(input: ParseStream<'_>) -> Result<Self>
[src]
Trait Implementations
impl Clone for ReturnType
[src]
impl Clone for ReturnType
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReturnType
[src]
impl Debug for ReturnType
[src]This is supported on crate feature
extra-traits
only.impl Eq for ReturnType
[src]
impl Eq for ReturnType
[src]This is supported on crate feature
extra-traits
only.impl Hash for ReturnType
[src]
impl Hash for ReturnType
[src]This is supported on crate feature
extra-traits
only.impl Parse for ReturnType
[src]
impl Parse for ReturnType
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ReturnType> for ReturnType
[src]
impl PartialEq<ReturnType> for ReturnType
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ReturnType
[src]
impl ToTokens for ReturnType
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReturnType
impl RefUnwindSafe for ReturnType
impl !Send for ReturnType
impl !Send for ReturnType
impl !Sync for ReturnType
impl !Sync for ReturnType
impl Unpin for ReturnType
impl Unpin for ReturnType
impl UnwindSafe for ReturnType
impl UnwindSafe for ReturnType