#[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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.