Enum ros2_client::parameters::ParameterValue
source · pub enum ParameterValue {
NotSet,
Boolean(bool),
Integer(i64),
Double(f64),
String(String),
ByteArray(Vec<u8>),
BooleanArray(Vec<bool>),
IntegerArray(Vec<i64>),
DoubleArray(Vec<f64>),
StringArray(Vec<String>),
}
Expand description
Rust-like representation of ROS2 ParameterValue
Variants§
NotSet
Boolean(bool)
Integer(i64)
Double(f64)
String(String)
ByteArray(Vec<u8>)
BooleanArray(Vec<bool>)
IntegerArray(Vec<i64>)
DoubleArray(Vec<f64>)
StringArray(Vec<String>)
Implementations§
source§impl ParameterValue
impl ParameterValue
pub fn to_parameter_type(&self) -> ParameterType
pub fn to_parameter_type_raw(p: &ParameterValue) -> u8
Trait Implementations§
source§impl Clone for ParameterValue
impl Clone for ParameterValue
source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParameterValue
impl Debug for ParameterValue
source§impl From<ParameterValue> for ParameterValue
impl From<ParameterValue> for ParameterValue
source§fn from(rpv: ParameterValue) -> ParameterValue
fn from(rpv: ParameterValue) -> ParameterValue
Converts to this type from the input type.
source§impl From<ParameterValue> for ParameterValue
impl From<ParameterValue> for ParameterValue
source§fn from(p: ParameterValue) -> ParameterValue
fn from(p: ParameterValue) -> ParameterValue
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)