Enum syn::ReturnType
source · Expand description
Return type of a function signature.
This type is available if Syn is built with the "derive"
or "full"
feature.
Variants§
Default
Return type is not specified.
Functions default to ()
and closures default to type inference.
Type(RArrow, Box<Type>)
A particular type is returned.
Implementations§
source§impl ReturnType
impl ReturnType
pub fn without_plus(input: ParseStream<'_>) -> Result<Self>
pub fn parse(input: ParseStream<'_>, allow_plus: bool) -> Result<Self>
Trait Implementations§
source§impl Clone for ReturnType
impl Clone for ReturnType
source§fn clone(&self) -> ReturnType
fn clone(&self) -> ReturnType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more