pub struct FunctionRef {
pub symbol: CompactString,
pub kind: FunctionKind,
pub start_line: u32,
pub end_line: u32,
pub byte_range: (u32, u32),
pub tree: TreeNode,
pub signature: Signature,
pub calls: Vec<CompactString>,
pub imports: Vec<CompactString>,
pub ast_hash: [u8; 32],
pub ignore: Option<IgnoreDirective>,
}Fields§
§symbol: CompactString§kind: FunctionKind§start_line: u32§end_line: u32§byte_range: (u32, u32)§tree: TreeNode§signature: Signature§calls: Vec<CompactString>§imports: Vec<CompactString>§ast_hash: [u8; 32]§ignore: Option<IgnoreDirective>Some when a layer-conform-ignore directive precedes the function.
Pipeline must skip ignored functions when detecting deviations.
Trait Implementations§
Source§impl Clone for FunctionRef
impl Clone for FunctionRef
Source§fn clone(&self) -> FunctionRef
fn clone(&self) -> FunctionRef
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionRef
impl RefUnwindSafe for FunctionRef
impl Send for FunctionRef
impl Sync for FunctionRef
impl Unpin for FunctionRef
impl UnsafeUnpin for FunctionRef
impl UnwindSafe for FunctionRef
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