[][src]Struct darknet::Layers

pub struct Layers<'a> { /* fields omitted */ }

A collection layers.

Implementations

impl<'a> Layers<'a>[src]

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

Get the layer by index.

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

Notable traits for LayersIter<'a>

impl<'a> Iterator for LayersIter<'a> type Item = Layer<'a>;
[src]

Get the iterator of the collection of layers.

Trait Implementations

impl<'a> Debug for Layers<'a>[src]

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

type IntoIter = LayersIter<'a>

Which kind of iterator are we turning this into?

type Item = Layer<'a>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Layers<'a>[src]

impl<'a> !Send for Layers<'a>[src]

impl<'a> !Sync for Layers<'a>[src]

impl<'a> Unpin for Layers<'a>[src]

impl<'a> UnwindSafe for Layers<'a>[src]

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> Pointable for T

type Init = T

The type for initializers.

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.