pub struct PhantomDetector { /* private fields */ }Expand description
Main detector implementation
Implementations§
Source§impl PhantomDetector
impl PhantomDetector
Sourcepub fn with_config(config: DetectorConfig) -> Result<Self>
pub fn with_config(config: DetectorConfig) -> Result<Self>
Create a new detector with custom configuration
Trait Implementations§
Source§impl Detector for PhantomDetector
impl Detector for PhantomDetector
Source§fn detect(&self, code: &CodeBlock) -> Result<DetectionResult>
fn detect(&self, code: &CodeBlock) -> Result<DetectionResult>
Detect AI-generated content in a code block
Source§fn detect_batch(
&self,
codes: &[CodeBlock],
) -> Result<Vec<DetectionResult>, Error>
fn detect_batch( &self, codes: &[CodeBlock], ) -> Result<Vec<DetectionResult>, Error>
Batch detect multiple code blocks
Auto Trait Implementations§
impl Freeze for PhantomDetector
impl !RefUnwindSafe for PhantomDetector
impl Send for PhantomDetector
impl Sync for PhantomDetector
impl Unpin for PhantomDetector
impl UnsafeUnpin for PhantomDetector
impl !UnwindSafe for PhantomDetector
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