Struct opencv::core::SparseMatIterator
source · pub struct SparseMatIterator { /* private fields */ }
Expand description
Read-write Sparse Matrix Iterator
The class is similar to cv::SparseMatConstIterator, but can be used for in-place modification of the matrix elements.
Implementations§
source§impl SparseMatIterator
impl SparseMatIterator
sourcepub fn default() -> Result<SparseMatIterator>
pub fn default() -> Result<SparseMatIterator>
the default constructor
sourcepub fn new(_m: &mut SparseMat) -> Result<SparseMatIterator>
pub fn new(_m: &mut SparseMat) -> Result<SparseMatIterator>
the full constructor setting the iterator to the first sparse matrix element
sourcepub fn copy(it: &SparseMatIterator) -> Result<SparseMatIterator>
pub fn copy(it: &SparseMatIterator) -> Result<SparseMatIterator>
the copy constructor
Trait Implementations§
source§impl Boxed for SparseMatIterator
impl Boxed for SparseMatIterator
source§impl Drop for SparseMatIterator
impl Drop for SparseMatIterator
source§impl From<SparseMatIterator> for SparseMatConstIterator
impl From<SparseMatIterator> for SparseMatConstIterator
source§fn from(s: SparseMatIterator) -> Self
fn from(s: SparseMatIterator) -> Self
Converts to this type from the input type.
source§impl SparseMatConstIteratorTrait for SparseMatIterator
impl SparseMatConstIteratorTrait for SparseMatIterator
fn as_raw_mut_SparseMatConstIterator(&mut self) -> *mut c_void
fn set_hashidx(&mut self, val: size_t)
fn ptr(&mut self) -> *mut u8
unsafe fn set_ptr(&mut self, val: *mut u8)
source§fn decr(&mut self) -> Result<SparseMatConstIterator>
fn decr(&mut self) -> Result<SparseMatConstIterator>
moves iterator to the previous element
source§fn incr(&mut self) -> Result<SparseMatConstIterator>
fn incr(&mut self) -> Result<SparseMatConstIterator>
moves iterator to the next element
source§impl SparseMatIteratorTrait for SparseMatIterator
impl SparseMatIteratorTrait for SparseMatIterator
fn as_raw_mut_SparseMatIterator(&mut self) -> *mut c_void
source§fn incr(&mut self) -> Result<SparseMatIterator>
fn incr(&mut self) -> Result<SparseMatIterator>
moves iterator to the next element
source§impl SparseMatIteratorTraitConst for SparseMatIterator
impl SparseMatIteratorTraitConst for SparseMatIterator
fn as_raw_SparseMatIterator(&self) -> *const c_void
source§fn node(&self) -> Result<SparseMat_Node>
fn node(&self) -> Result<SparseMat_Node>
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
impl Send for SparseMatIterator
Auto Trait Implementations§
impl RefUnwindSafe for SparseMatIterator
impl !Sync for SparseMatIterator
impl Unpin for SparseMatIterator
impl UnwindSafe for SparseMatIterator
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