#[repr(C)]pub struct AstExprFunction {Show 14 fields
pub base: AstExpr,
pub attributes: AstArray<*mut AstAttr>,
pub generics: AstArray<*mut AstGenericType>,
pub generic_packs: AstArray<*mut AstGenericTypePack>,
pub self_: *mut AstLocal,
pub args: AstArray<*mut AstLocal>,
pub return_annotation: *mut AstTypePack,
pub vararg: bool,
pub vararg_location: Location,
pub vararg_annotation: *mut AstTypePack,
pub body: *mut AstStatBlock,
pub function_depth: usize,
pub debugname: AstName,
pub arg_location: Option<Location>,
}Fields§
§base: AstExpr§attributes: AstArray<*mut AstAttr>§generics: AstArray<*mut AstGenericType>§generic_packs: AstArray<*mut AstGenericTypePack>§self_: *mut AstLocal§args: AstArray<*mut AstLocal>§return_annotation: *mut AstTypePack§vararg: bool§vararg_location: Location§vararg_annotation: *mut AstTypePack§body: *mut AstStatBlock§function_depth: usize§debugname: AstName§arg_location: Option<Location>Implementations§
Source§impl AstExprFunction
impl AstExprFunction
pub fn new( location: Location, attributes: AstArray<*mut AstAttr>, generics: AstArray<*mut AstGenericType>, generic_packs: AstArray<*mut AstGenericTypePack>, self_: *mut AstLocal, args: AstArray<*mut AstLocal>, vararg: bool, vararg_location: Location, body: *mut AstStatBlock, function_depth: usize, debugname: AstName, return_annotation: *mut AstTypePack, vararg_annotation: *mut AstTypePack, arg_location: Option<Location>, ) -> Self
Source§impl AstExprFunction
impl AstExprFunction
pub fn get_attribute(&self, attribute_type: AstAttrType) -> *mut AstAttr
Source§impl AstExprFunction
impl AstExprFunction
pub fn has_attribute(&self, attribute_type: AstAttrType) -> bool
Source§impl AstExprFunction
impl AstExprFunction
pub fn has_native_attribute(&self) -> bool
Trait Implementations§
Source§impl AstNodeClass for AstExprFunction
impl AstNodeClass for AstExprFunction
Source§const CLASS_INDEX: i32
const CLASS_INDEX: i32
The node’s RTTI id; mirrors
T::ClassIndex().Source§impl AstVisitable for AstExprFunction
impl AstVisitable for AstExprFunction
fn visit(&self, visitor: &mut dyn AstVisitor)
Source§impl Clone for AstExprFunction
impl Clone for AstExprFunction
Source§fn clone(&self) -> AstExprFunction
fn clone(&self) -> AstExprFunction
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 moreSource§impl Debug for AstExprFunction
impl Debug for AstExprFunction
Source§impl IntoAstExprFunctionMut for &mut AstExprFunction
impl IntoAstExprFunctionMut for &mut AstExprFunction
unsafe fn into_ast_expr_function_mut(self) -> *mut AstExprFunction
Auto Trait Implementations§
impl !Send for AstExprFunction
impl !Sync for AstExprFunction
impl Freeze for AstExprFunction
impl RefUnwindSafe for AstExprFunction
impl Unpin for AstExprFunction
impl UnsafeUnpin for AstExprFunction
impl UnwindSafe for AstExprFunction
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