[][src]Struct opencv::core::SparseMatConstIterator

pub struct SparseMatConstIterator { /* fields omitted */ }

Read-Only Sparse Matrix Iterator.

Here is how to use the iterator to compute the sum of floating-point sparse matrix elements:

\code SparseMatConstIterator it = m.begin(), it_end = m.end(); double s = 0; CV_Assert( m.type() == CV_32F ); for( ; it != it_end; ++it ) s += it.value(); \endcode

Implementations

impl SparseMatConstIterator[src]

impl SparseMatConstIterator[src]

pub fn default() -> Result<SparseMatConstIterator>[src]

the default constructor

pub fn new(_m: &SparseMat) -> Result<SparseMatConstIterator>[src]

the full constructor setting the iterator to the first sparse matrix element

pub fn copy(it: &SparseMatConstIterator) -> Result<SparseMatConstIterator>[src]

the copy constructor

Trait Implementations

impl Boxed for SparseMatConstIterator[src]

impl Drop for SparseMatConstIterator[src]

impl Send for SparseMatConstIterator[src]

impl SparseMatConstIteratorTrait for SparseMatConstIterator[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, 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.