pub struct DetectionBatch<'a> { /* private fields */ }Expand description
A detection batch backed by mutable storage owned by the caller.
Implementations§
Source§impl<'a> DetectionBatch<'a>
impl<'a> DetectionBatch<'a>
Sourcepub fn new(storage: &'a mut [Detection]) -> Self
pub fn new(storage: &'a mut [Detection]) -> Self
Creates an empty batch over caller-owned storage.
Sourcepub fn from_filled(storage: &'a mut [Detection]) -> Self
pub fn from_filled(storage: &'a mut [Detection]) -> Self
Creates a batch whose complete caller-owned slice contains valid data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for DetectionBatch<'a>
impl<'a> Freeze for DetectionBatch<'a>
impl<'a> RefUnwindSafe for DetectionBatch<'a>
impl<'a> Send for DetectionBatch<'a>
impl<'a> Sync for DetectionBatch<'a>
impl<'a> Unpin for DetectionBatch<'a>
impl<'a> UnsafeUnpin for DetectionBatch<'a>
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