#[repr(C)]pub struct StatementDeclareFunction<'ast> {
pub base: StatementHeader<'ast>,
pub name: AstName<'ast>,
pub name_location: Location,
pub params: TypeList<'ast>,
pub param_names: &'ast [ArgumentName<'ast>],
pub variadic: bool,
pub vararg_location: Location,
pub generics: &'ast [&'ast GenericType<'ast>],
pub generic_packs: &'ast [&'ast GenericTypePack<'ast>],
pub return_types: TypePack<'ast>,
pub attributes: &'ast [&'ast Attribute<'ast>],
}Fields§
§base: StatementHeader<'ast>§name: AstName<'ast>§name_location: Location§params: TypeList<'ast>§param_names: &'ast [ArgumentName<'ast>]§variadic: bool§vararg_location: Location§generics: &'ast [&'ast GenericType<'ast>]§generic_packs: &'ast [&'ast GenericTypePack<'ast>]§return_types: TypePack<'ast>§attributes: &'ast [&'ast Attribute<'ast>]Implementations§
Source§impl<'ast> StatementDeclareFunction<'ast>
impl<'ast> StatementDeclareFunction<'ast>
pub fn new( location: Location, has_semicolon: bool, name: AstName<'ast>, name_location: Location, params: TypeList<'ast>, param_names: &'ast [ArgumentName<'ast>], variadic: bool, vararg_location: Location, generics: &'ast [&'ast GenericType<'ast>], generic_packs: &'ast [&'ast GenericTypePack<'ast>], return_types: TypePack<'ast>, attributes: &'ast [&'ast Attribute<'ast>], ) -> Self
pub fn location(&self) -> Location
pub fn has_semicolon(&self) -> bool
Trait Implementations§
Source§impl Debug for StatementDeclareFunction<'_>
impl Debug for StatementDeclareFunction<'_>
Auto Trait Implementations§
impl<'ast> !Send for StatementDeclareFunction<'ast>
impl<'ast> !Sync for StatementDeclareFunction<'ast>
impl<'ast> Freeze for StatementDeclareFunction<'ast>
impl<'ast> RefUnwindSafe for StatementDeclareFunction<'ast>
impl<'ast> Unpin for StatementDeclareFunction<'ast>
impl<'ast> UnsafeUnpin for StatementDeclareFunction<'ast>
impl<'ast> UnwindSafe for StatementDeclareFunction<'ast>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more