pub struct ScanResultBuilder { /* private fields */ }Expand description
Incrementally builds a ScanResult from individual detector results.
Implementations§
Source§impl ScanResultBuilder
impl ScanResultBuilder
Sourcepub fn new(input_text: &str) -> Self
pub fn new(input_text: &str) -> Self
Create a new builder, computing the input hash immediately.
Sourcepub fn add_result(&mut self, result: DetectorResult) -> &mut Self
pub fn add_result(&mut self, result: DetectorResult) -> &mut Self
Append a detector result.
Sourcepub fn build(self, aggregator: &ResultAggregator) -> ScanResult
pub fn build(self, aggregator: &ResultAggregator) -> ScanResult
Finalise the scan using the provided aggregator.
Auto Trait Implementations§
impl Freeze for ScanResultBuilder
impl RefUnwindSafe for ScanResultBuilder
impl Send for ScanResultBuilder
impl Sync for ScanResultBuilder
impl Unpin for ScanResultBuilder
impl UnsafeUnpin for ScanResultBuilder
impl UnwindSafe for ScanResultBuilder
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