pub struct FnDetector<F>(/* private fields */);Expand description
Adapt a closure into a Detector. See from_fn.
Trait Implementations§
Source§impl<F> Detector for FnDetector<F>
impl<F> Detector for FnDetector<F>
fn evaluate( &mut self, view: &FrameView<'_>, ) -> Result<DetectorOutput, DetectorError>
Auto Trait Implementations§
impl<F> Freeze for FnDetector<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnDetector<F>where
F: RefUnwindSafe,
impl<F> Send for FnDetector<F>where
F: Send,
impl<F> Sync for FnDetector<F>where
F: Sync,
impl<F> Unpin for FnDetector<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnDetector<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnDetector<F>where
F: UnwindSafe,
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