[−][src]Struct opencv::dnn::DictValue
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]
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]
C++ default parameters
- idx: -1
pub fn get_real_value(&self, idx: i32) -> Result<f64>
[src]
C++ default parameters
- idx: -1
pub fn get_string_value(&self, idx: i32) -> Result<String>
[src]
C++ default parameters
- idx: -1
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
Auto Trait Implementations
impl !Sync for DictValue
impl Unpin for DictValue
impl UnwindSafe for DictValue
impl RefUnwindSafe for DictValue
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,