[−][src]Struct opencv::core::FileStorage
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or reading data to/from a file.
Implementations
impl FileStorage
[src]
pub fn as_raw_FileStorage(&self) -> *const c_void
[src]
pub fn as_raw_mut_FileStorage(&mut self) -> *mut c_void
[src]
impl FileStorage
[src]
pub fn default() -> Result<FileStorage>
[src]
The constructors.
The full constructor opens the file. Alternatively you can use the default constructor and then call FileStorage::open.
pub fn new(filename: &str, flags: i32, encoding: &str) -> Result<FileStorage>
[src]
The constructors.
The full constructor opens the file. Alternatively you can use the default constructor and then call FileStorage::open.
Overloaded parameters
@copydoc open()
C++ default parameters
- encoding: String()
pub fn get_default_object_name(filename: &str) -> Result<String>
[src]
Returns the normalized object name for the specified name of a file.
Parameters
- filename: Name of a file
Returns
The normalized object name.
Trait Implementations
impl Boxed for FileStorage
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for FileStorage
[src]
impl FileStorageTrait for FileStorage
[src]
fn as_raw_FileStorage(&self) -> *const c_void
[src]
fn as_raw_mut_FileStorage(&mut self) -> *mut c_void
[src]
fn state(&self) -> i32
[src]
fn set_state(&mut self, val: i32)
[src]
fn elname(&self) -> String
[src]
fn set_elname(&mut self, val: &str)
[src]
fn open(&mut self, filename: &str, flags: i32, encoding: &str) -> Result<bool>
[src]
fn is_opened(&self) -> Result<bool>
[src]
fn release(&mut self) -> Result<()>
[src]
fn release_and_get_string(&mut self) -> Result<String>
[src]
fn get_first_top_level_node(&self) -> Result<FileNode>
[src]
fn root(&self, streamidx: i32) -> Result<FileNode>
[src]
fn get(&self, nodename: &str) -> Result<FileNode>
[src]
fn get_node(&self, nodename: &str) -> Result<FileNode>
[src]
fn write_i32(&mut self, name: &str, val: i32) -> Result<()>
[src]
fn write_f64(&mut self, name: &str, val: f64) -> Result<()>
[src]
fn write_str(&mut self, name: &str, val: &str) -> Result<()>
[src]
fn write_mat(&mut self, name: &str, val: &Mat) -> Result<()>
[src]
fn write_str_vec(&mut self, name: &str, val: &Vector<String>) -> Result<()>
[src]
fn write_raw(
&mut self,
fmt: &str,
vec: *const c_void,
len: size_t
) -> Result<()>
[src]
&mut self,
fmt: &str,
vec: *const c_void,
len: size_t
) -> Result<()>
fn write_comment(&mut self, comment: &str, append: bool) -> Result<()>
[src]
fn start_write_struct(
&mut self,
name: &str,
flags: i32,
type_name: &str
) -> Result<()>
[src]
&mut self,
name: &str,
flags: i32,
type_name: &str
) -> Result<()>
fn end_write_struct(&mut self) -> Result<()>
[src]
fn get_format(&self) -> Result<i32>
[src]
impl Send for FileStorage
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileStorage
[src]
impl !Sync for FileStorage
[src]
impl Unpin for FileStorage
[src]
impl UnwindSafe for FileStorage
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,