#[repr(C)]pub struct AstStatDeclareFunction {
pub base: AstStat,
pub attributes: AstArray<*mut AstAttr>,
pub name: AstName,
pub name_location: Location,
pub generics: AstArray<*mut AstGenericType>,
pub generic_packs: AstArray<*mut AstGenericTypePack>,
pub params: AstTypeList,
pub param_names: AstArray<AstArgumentName>,
pub vararg: bool,
pub vararg_location: Location,
pub ret_types: *mut AstTypePack,
}Fields§
§base: AstStat§attributes: AstArray<*mut AstAttr>§name: AstName§name_location: Location§generics: AstArray<*mut AstGenericType>§generic_packs: AstArray<*mut AstGenericTypePack>§params: AstTypeList§param_names: AstArray<AstArgumentName>§vararg: bool§vararg_location: Location§ret_types: *mut AstTypePackImplementations§
Source§impl AstStatDeclareFunction
impl AstStatDeclareFunction
pub fn new_simple( location: Location, name: AstName, name_location: Location, generics: AstArray<*mut AstGenericType>, generic_packs: AstArray<*mut AstGenericTypePack>, params: AstTypeList, param_names: AstArray<AstArgumentName>, vararg: bool, vararg_location: Location, ret_types: *mut AstTypePack, ) -> Self
Source§impl AstStatDeclareFunction
impl AstStatDeclareFunction
pub fn new( location: Location, attributes: AstArray<*mut AstAttr>, name: AstName, name_location: Location, generics: AstArray<*mut AstGenericType>, generic_packs: AstArray<*mut AstGenericTypePack>, params: AstTypeList, param_names: AstArray<AstArgumentName>, vararg: bool, vararg_location: Location, ret_types: *mut AstTypePack, ) -> Self
Source§impl AstStatDeclareFunction
impl AstStatDeclareFunction
pub fn get_attribute(&self, attribute_type: AstAttrType) -> *mut AstAttr
Source§impl AstStatDeclareFunction
impl AstStatDeclareFunction
pub fn has_attribute(&self, attribute_type: AstAttrType) -> bool
Source§impl AstStatDeclareFunction
impl AstStatDeclareFunction
pub fn is_checked_function(&self) -> bool
Trait Implementations§
Source§impl AstNodeClass for AstStatDeclareFunction
impl AstNodeClass for AstStatDeclareFunction
Source§const CLASS_INDEX: i32
const CLASS_INDEX: i32
The node’s RTTI id; mirrors
T::ClassIndex().Source§impl AstVisitable for AstStatDeclareFunction
impl AstVisitable for AstStatDeclareFunction
fn visit(&self, visitor: &mut dyn AstVisitor)
Source§impl Clone for AstStatDeclareFunction
impl Clone for AstStatDeclareFunction
Source§fn clone(&self) -> AstStatDeclareFunction
fn clone(&self) -> AstStatDeclareFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for AstStatDeclareFunction
impl !Sync for AstStatDeclareFunction
impl Freeze for AstStatDeclareFunction
impl RefUnwindSafe for AstStatDeclareFunction
impl Unpin for AstStatDeclareFunction
impl UnsafeUnpin for AstStatDeclareFunction
impl UnwindSafe for AstStatDeclareFunction
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