Enum r2r::ParameterValue
source · pub enum ParameterValue {
NotSet,
Bool(bool),
Integer(i64),
Double(f64),
String(String),
BoolArray(Vec<bool>),
ByteArray(Vec<u8>),
IntegerArray(Vec<i64>),
DoubleArray(Vec<f64>),
StringArray(Vec<String>),
}
Expand description
ROS parameter value.
Variants§
NotSet
Bool(bool)
Integer(i64)
Double(f64)
String(String)
BoolArray(Vec<bool>)
ByteArray(Vec<u8>)
IntegerArray(Vec<i64>)
DoubleArray(Vec<f64>)
StringArray(Vec<String>)
Implementations§
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 PartialEq for ParameterValue
impl PartialEq for ParameterValue
source§impl TryInto<()> for ParameterValue
impl TryInto<()> for ParameterValue
source§impl TryInto<String> for ParameterValue
impl TryInto<String> for ParameterValue
source§impl TryInto<bool> for ParameterValue
impl TryInto<bool> for ParameterValue
source§impl TryInto<f64> for ParameterValue
impl TryInto<f64> for ParameterValue
source§impl TryInto<i64> for ParameterValue
impl TryInto<i64> for ParameterValue
impl StructuralPartialEq for ParameterValue
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more