pub struct DictValue { /* private fields */ }
Expand description
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.
Implementations§
source§impl DictValue
impl DictValue
pub fn copy(r: &DictValue) -> Result<DictValue>
pub fn from_bool(i: bool) -> Result<DictValue>
sourcepub fn from_i64_def() -> Result<DictValue>
pub fn from_i64_def() -> Result<DictValue>
Note
This alternative version of [from_i64] function uses the following default values for its arguments:
- i: 0
pub fn from_i32(i: i32) -> Result<DictValue>
pub fn from_u32(p: u32) -> Result<DictValue>
pub fn from_f64(p: f64) -> Result<DictValue>
pub fn from_str(s: &str) -> Result<DictValue>
Trait Implementations§
source§impl Boxed for DictValue
impl Boxed for DictValue
source§impl DictValueTrait for DictValue
impl DictValueTrait for DictValue
source§impl DictValueTraitConst for DictValue
impl DictValueTraitConst for DictValue
fn as_raw_DictValue(&self) -> *const c_void
fn get_str_def(&self) -> Result<String>
fn get_f64_def(&self) -> Result<f64>
fn get_i32_def(&self) -> Result<i32>
fn get_i64_def(&self) -> Result<i64>
fn size(&self) -> Result<i32>
fn is_int(&self) -> Result<bool>
fn is_string(&self) -> Result<bool>
fn is_real(&self) -> Result<bool>
impl Send for DictValue
Auto Trait Implementations§
impl RefUnwindSafe for DictValue
impl !Sync for DictValue
impl Unpin for DictValue
impl UnwindSafe for DictValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more