Enum syntax::ast::FunctionRetTy [−] [src]

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

Variants

NoReturn
Unstable

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

DefaultReturn
Unstable

Return type is not specified.

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

Return
Unstable

Everything else

Methods

impl FunctionRetTy

fn span(&self) -> Span

Unstable

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, __D>

impl Encodable for FunctionRetTy

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

impl Eq for FunctionRetTy

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)