Struct rcl_sys::rcl_yaml_param_parser::rcl_variant_t
source · [−]#[repr(C)]pub struct rcl_variant_t {
pub bool_value: *mut bool,
pub integer_value: *mut i64,
pub double_value: *mut f64,
pub string_value: *mut c_char,
pub byte_array_value: *mut rcl_byte_array_t,
pub bool_array_value: *mut rcl_bool_array_t,
pub integer_array_value: *mut rcl_int64_array_t,
pub double_array_value: *mut rcl_double_array_t,
pub string_array_value: *mut rcutils_string_array_t,
}
Expand description
variant_t stores the value of a parameter
Fields
bool_value: *mut bool
If bool, gets stored here
integer_value: *mut i64
If integer, gets stored here
double_value: *mut f64
If double, gets stored here
string_value: *mut c_char
If string, gets stored here
byte_array_value: *mut rcl_byte_array_t
If array of bytes
bool_array_value: *mut rcl_bool_array_t
If array of bool’s
integer_array_value: *mut rcl_int64_array_t
If array of integers
double_array_value: *mut rcl_double_array_t
If array of doubles
string_array_value: *mut rcutils_string_array_t
If array of strings
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for rcl_variant_t
impl !Send for rcl_variant_t
impl !Sync for rcl_variant_t
impl Unpin for rcl_variant_t
impl UnwindSafe for rcl_variant_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more