Struct kailua_syntax::ast::Sig
[−]
[src]
pub struct Sig { pub attrs: Vec<Spanned<Attr>>, pub args: Spanned<Seq<TypeSpec<Spanned<ScopedId>>, Varargs>>, pub returns: Option<Returns>, }
A Kailua-specific function signature.
Fields
attrs: Vec<Spanned<Attr>>
A list of attributes.
args: Spanned<Seq<TypeSpec<Spanned<ScopedId>>, Varargs>>
A list of arguments (resolved to scoped identifiers) and associated types if any.
returns: Option<Returns>
A list of return types, if explicitly given. Inferred if missing.
Trait Implementations
impl Clone for Sig
[src]
fn clone(&self) -> Sig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Sig
[src]
fn eq(&self, __arg_0: &Sig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sig) -> bool
This method tests for !=
.