pub struct CustomDetector { /* private fields */ }Implementations§
Source§impl CustomDetector
impl CustomDetector
pub fn new(config: &DetectionConfig) -> Result<Self>
pub fn detect(&self, text: &str) -> Result<Vec<DetectedEntity>>
Auto Trait Implementations§
impl Freeze for CustomDetector
impl RefUnwindSafe for CustomDetector
impl Send for CustomDetector
impl Sync for CustomDetector
impl Unpin for CustomDetector
impl UnsafeUnpin for CustomDetector
impl UnwindSafe for CustomDetector
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