Enum syntax::ast::FunctionRetTyUnstable [-] [+] [src]

pub enum FunctionRetTy {
    NoReturn(Span),
    DefaultReturn(Span),
    Return(P<Ty>),
}

Variants

NoReturn

Functions with return type ! that always raise an error or exit (i.e. never return to the caller)

DefaultReturn

Return type is not specified. Functions default to () and closures default to inference. Span points to where return type would be inserted.

Return

Everything else

Methods

impl FunctionRetTy

fn span(&self) -> Span

Trait Implementations

Derived Implementations

impl Debug for FunctionRetTy

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for FunctionRetTy

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for FunctionRetTy

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<FunctionRetTy, Error>

impl Encodable for FunctionRetTy

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for FunctionRetTy

fn assert_receiver_is_total_eq(&self)

impl PartialEq for FunctionRetTy

fn eq(&self, __arg_0: &FunctionRetTy) -> bool

fn ne(&self, __arg_0: &FunctionRetTy) -> bool

impl Clone for FunctionRetTy

fn clone(&self) -> FunctionRetTy

fn clone_from(&mut self, source: &Self)