pub enum Value {
Bool(bool),
Int(i64),
UInt(u64),
Float(f64),
String(String),
Bytes(Vec<u8>),
List(Vec<Value>),
Struct(Vec<(String, Value)>),
}Expand description
A value of a field of a ROS 2 message.
Variants§
Bool(bool)
bool.
Int(i64)
A signed integer (int8 to int64).
UInt(u64)
An unsigned integer (uint8 to uint64, char, byte).
Float(f64)
float32 or float64.
String(String)
string or wstring.
Bytes(Vec<u8>)
An array or a sequence of byte, uint8 or char.
List(Vec<Value>)
An array or a sequence of other elements.
Struct(Vec<(String, Value)>)
A message: its fields by name, in order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Valuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for Value
impl RefUnwindSafe for Value
impl Send for Valuewhere
RawVecInner: Send,
impl Sync for Valuewhere
RawVecInner: Sync,
impl Unpin for Value
impl UnsafeUnpin for Valuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for Valuewhere
RawVecInner: UnwindSafe,
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