[][src]Struct opencv::dnn::DictValue

pub struct DictValue { /* fields omitted */ }

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64. @todo Maybe int64 is useless because double type exactly stores at least 2^52 integers.

Methods

impl DictValue[src]

pub fn as_raw_DictValue(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl DictValue[src]

pub fn copy(r: &DictValue) -> Result<DictValue>[src]

pub fn from_bool(i: bool) -> Result<DictValue>[src]

Constructs integer scalar

pub fn from_i64(i: i64) -> Result<DictValue>[src]

Constructs integer scalar

C++ default parameters

  • i: 0

pub fn from_i32(i: i32) -> Result<DictValue>[src]

Constructs integer scalar

pub fn from_u32(p: u32) -> Result<DictValue>[src]

Constructs integer scalar

pub fn from_f64(p: f64) -> Result<DictValue>[src]

Constructs floating point scalar

pub fn from_str(s: &str) -> Result<DictValue>[src]

pub fn size(&self) -> Result<i32>[src]

pub fn is_int(&self) -> Result<bool>[src]

pub fn is_string(&self) -> Result<bool>[src]

pub fn is_real(&self) -> Result<bool>[src]

pub fn get_int_value(&self, idx: i32) -> Result<i32>[src]

pub fn get_real_value(&self, idx: i32) -> Result<f64>[src]

pub fn get_string_value(&self, idx: i32) -> Result<String>[src]

impl DictValue[src]

pub fn get_f64(&self, idx: i32) -> Result<f64>[src]

pub fn get_i64(&self, idx: i32) -> Result<i64>[src]

pub fn get_string(&self, idx: i32) -> Result<String>[src]

Trait Implementations

impl Send for DictValue[src]

impl Drop for DictValue[src]

impl Debug for DictValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]