pub struct Scanner { /* private fields */ }Implementations§
Source§impl Scanner
impl Scanner
pub fn new() -> Self
pub fn builder() -> ScannerBuilder
pub fn scan(&self, input: &str) -> Vec<DetectionResult>
Sourcepub fn assess(&self, input: &str) -> RiskAssessment
pub fn assess(&self, input: &str) -> RiskAssessment
把「有/无命中」升级为「累积风险」:多条低危叠加可升到更高等级。
pub fn scan_with(&self, input: &str, names: &[&str]) -> Vec<DetectionResult>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scanner
impl !UnwindSafe for Scanner
impl Freeze for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnsafeUnpin for Scanner
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