Struct opencv::core::FileNodeIterator
source · pub struct FileNodeIterator { /* private fields */ }
Expand description
used to iterate through sequences and mappings.
A standard STL notation, with node.begin(), node.end() denoting the beginning and the end of a sequence, stored in node. See the data reading sample in the beginning of the section.
Implementations§
source§impl FileNodeIterator
impl FileNodeIterator
sourcepub fn default() -> Result<FileNodeIterator>
pub fn default() -> Result<FileNodeIterator>
The constructors.
These constructors are used to create a default iterator, set it to specific element in a file node or construct it from another iterator.
sourcepub fn new(node: &FileNode, seek_end: bool) -> Result<FileNodeIterator>
pub fn new(node: &FileNode, seek_end: bool) -> Result<FileNodeIterator>
The constructors.
These constructors are used to create a default iterator, set it to specific element in a file node or construct it from another iterator.
Overloaded parameters
Parameters
- node: File node - the collection to iterate over; it can be a scalar (equivalent to 1-element collection) or “none” (equivalent to empty collection).
- seekEnd: - true if iterator needs to be set after the last element of the node; that is: * node.begin() => FileNodeIterator(node, false) * node.end() => FileNodeIterator(node, true)
sourcepub fn copy(it: &FileNodeIterator) -> Result<FileNodeIterator>
pub fn copy(it: &FileNodeIterator) -> Result<FileNodeIterator>
The constructors.
These constructors are used to create a default iterator, set it to specific element in a file node or construct it from another iterator.
Overloaded parameters
Parameters
- it: Iterator to be used as initialization for the created iterator.
Trait Implementations§
source§impl Boxed for FileNodeIterator
impl Boxed for FileNodeIterator
source§impl Drop for FileNodeIterator
impl Drop for FileNodeIterator
source§impl FileNodeIteratorTrait for FileNodeIterator
impl FileNodeIteratorTrait for FileNodeIterator
fn as_raw_mut_FileNodeIterator(&mut self) -> *mut c_void
source§fn incr(&mut self) -> Result<FileNodeIterator>
fn incr(&mut self) -> Result<FileNodeIterator>
moves iterator to the next node
source§impl FileNodeIteratorTraitConst for FileNodeIterator
impl FileNodeIteratorTraitConst for FileNodeIterator
impl Send for FileNodeIterator
Auto Trait Implementations§
impl RefUnwindSafe for FileNodeIterator
impl !Sync for FileNodeIterator
impl Unpin for FileNodeIterator
impl UnwindSafe for FileNodeIterator
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