[][src]Struct darknet::Detections

pub struct Detections { /* fields omitted */ }

A collection of detections.

Implementations

impl Detections[src]

pub fn get<'a>(&'a self, index: usize) -> Option<Detection<'a>>[src]

Get a detection instance by index.

pub fn len(&self) -> usize[src]

Return detections count.

pub fn iter<'a>(&'a self) -> DetectionsIter<'a>

Important traits for DetectionsIter<'a>

impl<'a> Iterator for DetectionsIter<'a> type Item = Detection<'a>;
[src]

Get the iterator of a collection of detections.

Trait Implementations

impl Debug for Detections[src]

impl Drop for Detections[src]

impl<'a> IntoIterator for &'a Detections[src]

type Item = Detection<'a>

The type of the elements being iterated over.

type IntoIter = DetectionsIter<'a>

Which kind of iterator are we turning this into?

impl Send for Detections[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.