pub struct FunctionDef {
pub specs: DeclSpecs,
pub declarator: Declarator,
pub body: CompoundStmt,
pub info: NodeInfo,
pub comments: Vec<Comment>,
pub is_target: bool,
pub function_call_count: usize,
pub deref_count: usize,
}Expand description
関数定義
Fields§
§specs: DeclSpecs§declarator: Declarator§body: CompoundStmt§info: NodeInfo§comments: Vec<Comment>§is_target: boolターゲットディレクトリで定義されたかどうか
function_call_count: usize関数本体に含まれる関数呼び出しの数(パース時に検出)
deref_count: usize関数本体に含まれるポインタデリファレンスの数(パース時に検出)
Implementations§
Source§impl FunctionDef
impl FunctionDef
Sourcepub fn loc(&self) -> &SourceLocation
pub fn loc(&self) -> &SourceLocation
後方互換性のための loc アクセサ
Trait Implementations§
Source§impl Clone for FunctionDef
impl Clone for FunctionDef
Source§fn clone(&self) -> FunctionDef
fn clone(&self) -> FunctionDef
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 Freeze for FunctionDef
impl RefUnwindSafe for FunctionDef
impl Send for FunctionDef
impl Sync for FunctionDef
impl Unpin for FunctionDef
impl UnsafeUnpin for FunctionDef
impl UnwindSafe for FunctionDef
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