[−][src]Trait opencv::core::prelude::FileNodeIteratorTrait
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.
Required methods
pub fn as_raw_FileNodeIterator(&self) -> *const c_void
[src]
pub fn as_raw_mut_FileNodeIterator(&mut self) -> *mut c_void
[src]
Provided methods
pub fn try_deref(&self) -> Result<FileNode>
[src]
returns the currently observed element
pub fn read_raw(
&mut self,
fmt: &str,
vec: *mut c_void,
len: size_t
) -> Result<FileNodeIterator>
[src]
&mut self,
fmt: &str,
vec: *mut c_void,
len: size_t
) -> Result<FileNodeIterator>
Reads node elements to the buffer with the specified format.
Usually it is more convenient to use operator >>
instead of this method.
Parameters
- fmt: Specification of each array element. See @ref format_spec "format specification"
- vec: Pointer to the destination array.
- len: Number of bytes to read (buffer size limit). If it is greater than number of remaining elements then all of them will be read.
C++ default parameters
- len: (size_t)INT_MAX
pub fn remaining(&self) -> Result<size_t>
[src]
returns the number of remaining (not read yet) elements