pub struct OutputParamDetector;Expand description
Detector for output parameters in C functions.
Implementations§
Source§impl OutputParamDetector
impl OutputParamDetector
Sourcepub fn detect(&self, func: &HirFunction) -> Vec<OutputParameter>
pub fn detect(&self, func: &HirFunction) -> Vec<OutputParameter>
Detect output parameters in a function.
§Arguments
func- The HIR function to analyze
§Returns
A vector of detected output parameters.
§Examples
use decy_analyzer::output_params::OutputParamDetector;
use decy_hir::HirFunction;
let detector = OutputParamDetector::new();
// let func = ...; // Create HIR function
// let params = detector.detect(&func);Trait Implementations§
Source§impl Clone for OutputParamDetector
impl Clone for OutputParamDetector
Source§fn clone(&self) -> OutputParamDetector
fn clone(&self) -> OutputParamDetector
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 moreSource§impl Debug for OutputParamDetector
impl Debug for OutputParamDetector
Auto Trait Implementations§
impl Freeze for OutputParamDetector
impl RefUnwindSafe for OutputParamDetector
impl Send for OutputParamDetector
impl Sync for OutputParamDetector
impl Unpin for OutputParamDetector
impl UnwindSafe for OutputParamDetector
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