opencv::prelude

Trait FileNodeIteratorTrait

Source
pub trait FileNodeIteratorTrait: FileNodeIteratorTraitConst {
    // Required method
    fn as_raw_mut_FileNodeIterator(&mut self) -> *mut c_void;

    // Provided methods
    fn set(&mut self, it: &impl FileNodeIteratorTraitConst) -> Result<()> { ... }
    fn incr(&mut self) -> Result<FileNodeIterator> { ... }
    fn read_raw(
        &mut self,
        fmt: &str,
        vec: &mut [u8],
    ) -> Result<FileNodeIterator> { ... }
}
Expand description

Mutable methods for core::FileNodeIterator

Required Methods§

Provided Methods§

Source

fn set(&mut self, it: &impl FileNodeIteratorTraitConst) -> Result<()>

Source

fn incr(&mut self) -> Result<FileNodeIterator>

moves iterator to the next node

Source

fn read_raw(&mut self, fmt: &str, vec: &mut [u8]) -> 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 [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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§