pub struct TypeId;Expand description
Type ID constants matching ROS 2 RIHS01 specification
Implementations§
Source§impl TypeId
impl TypeId
Sourcepub const NESTED_TYPE: u8 = 1
pub const NESTED_TYPE: u8 = 1
Nested message type (single)
Sourcepub const FIXED_STRING: u8 = 19
pub const FIXED_STRING: u8 = 19
fixed string (single)
Sourcepub const FIXED_WSTRING: u8 = 20
pub const FIXED_WSTRING: u8 = 20
fixed wstring (single)
Sourcepub const BOUNDED_STRING: u8 = 21
pub const BOUNDED_STRING: u8 = 21
bounded string (single) - string with max length
Sourcepub const BOUNDED_WSTRING: u8 = 22
pub const BOUNDED_WSTRING: u8 = 22
bounded wstring (single)
Sourcepub const NESTED_TYPE_ARRAY: u8 = 49
pub const NESTED_TYPE_ARRAY: u8 = 49
Nested message type (fixed array)
Sourcepub const INT8_ARRAY: u8 = 50
pub const INT8_ARRAY: u8 = 50
int8 (fixed array)
Sourcepub const UINT8_ARRAY: u8 = 51
pub const UINT8_ARRAY: u8 = 51
uint8/byte/char (fixed array)
Sourcepub const INT16_ARRAY: u8 = 52
pub const INT16_ARRAY: u8 = 52
int16 (fixed array)
Sourcepub const UINT16_ARRAY: u8 = 53
pub const UINT16_ARRAY: u8 = 53
uint16 (fixed array)
Sourcepub const INT32_ARRAY: u8 = 54
pub const INT32_ARRAY: u8 = 54
int32 (fixed array)
Sourcepub const UINT32_ARRAY: u8 = 55
pub const UINT32_ARRAY: u8 = 55
uint32 (fixed array)
Sourcepub const INT64_ARRAY: u8 = 56
pub const INT64_ARRAY: u8 = 56
int64 (fixed array)
Sourcepub const UINT64_ARRAY: u8 = 57
pub const UINT64_ARRAY: u8 = 57
uint64 (fixed array)
Sourcepub const FLOAT32_ARRAY: u8 = 58
pub const FLOAT32_ARRAY: u8 = 58
float32 (fixed array)
Sourcepub const FLOAT64_ARRAY: u8 = 59
pub const FLOAT64_ARRAY: u8 = 59
float64 (fixed array)
Sourcepub const BOOL_ARRAY: u8 = 63
pub const BOOL_ARRAY: u8 = 63
bool (fixed array)
Sourcepub const STRING_ARRAY: u8 = 65
pub const STRING_ARRAY: u8 = 65
string (fixed array)
Sourcepub const NESTED_TYPE_BOUNDED_SEQUENCE: u8 = 97
pub const NESTED_TYPE_BOUNDED_SEQUENCE: u8 = 97
Nested message type (bounded sequence)
Sourcepub const INT8_BOUNDED_SEQUENCE: u8 = 98
pub const INT8_BOUNDED_SEQUENCE: u8 = 98
int8 (bounded sequence)
Sourcepub const UINT8_BOUNDED_SEQUENCE: u8 = 99
pub const UINT8_BOUNDED_SEQUENCE: u8 = 99
uint8/byte/char (bounded sequence)
Sourcepub const INT16_BOUNDED_SEQUENCE: u8 = 100
pub const INT16_BOUNDED_SEQUENCE: u8 = 100
int16 (bounded sequence)
Sourcepub const UINT16_BOUNDED_SEQUENCE: u8 = 101
pub const UINT16_BOUNDED_SEQUENCE: u8 = 101
uint16 (bounded sequence)
Sourcepub const INT32_BOUNDED_SEQUENCE: u8 = 102
pub const INT32_BOUNDED_SEQUENCE: u8 = 102
int32 (bounded sequence)
Sourcepub const UINT32_BOUNDED_SEQUENCE: u8 = 103
pub const UINT32_BOUNDED_SEQUENCE: u8 = 103
uint32 (bounded sequence)
Sourcepub const INT64_BOUNDED_SEQUENCE: u8 = 104
pub const INT64_BOUNDED_SEQUENCE: u8 = 104
int64 (bounded sequence)
Sourcepub const UINT64_BOUNDED_SEQUENCE: u8 = 105
pub const UINT64_BOUNDED_SEQUENCE: u8 = 105
uint64 (bounded sequence)
Sourcepub const FLOAT32_BOUNDED_SEQUENCE: u8 = 106
pub const FLOAT32_BOUNDED_SEQUENCE: u8 = 106
float32 (bounded sequence)
Sourcepub const FLOAT64_BOUNDED_SEQUENCE: u8 = 107
pub const FLOAT64_BOUNDED_SEQUENCE: u8 = 107
float64 (bounded sequence)
Sourcepub const BOOL_BOUNDED_SEQUENCE: u8 = 111
pub const BOOL_BOUNDED_SEQUENCE: u8 = 111
bool (bounded sequence)
Sourcepub const STRING_BOUNDED_SEQUENCE: u8 = 113
pub const STRING_BOUNDED_SEQUENCE: u8 = 113
string (bounded sequence)
Sourcepub const NESTED_TYPE_UNBOUNDED_SEQUENCE: u8 = 145
pub const NESTED_TYPE_UNBOUNDED_SEQUENCE: u8 = 145
Nested message type (unbounded sequence)
Sourcepub const INT8_UNBOUNDED_SEQUENCE: u8 = 146
pub const INT8_UNBOUNDED_SEQUENCE: u8 = 146
int8 (unbounded sequence)
Sourcepub const UINT8_UNBOUNDED_SEQUENCE: u8 = 147
pub const UINT8_UNBOUNDED_SEQUENCE: u8 = 147
uint8/byte/char (unbounded sequence)
Sourcepub const INT16_UNBOUNDED_SEQUENCE: u8 = 148
pub const INT16_UNBOUNDED_SEQUENCE: u8 = 148
int16 (unbounded sequence)
Sourcepub const UINT16_UNBOUNDED_SEQUENCE: u8 = 149
pub const UINT16_UNBOUNDED_SEQUENCE: u8 = 149
uint16 (unbounded sequence)
Sourcepub const INT32_UNBOUNDED_SEQUENCE: u8 = 150
pub const INT32_UNBOUNDED_SEQUENCE: u8 = 150
int32 (unbounded sequence)
Sourcepub const UINT32_UNBOUNDED_SEQUENCE: u8 = 151
pub const UINT32_UNBOUNDED_SEQUENCE: u8 = 151
uint32 (unbounded sequence)
Sourcepub const INT64_UNBOUNDED_SEQUENCE: u8 = 152
pub const INT64_UNBOUNDED_SEQUENCE: u8 = 152
int64 (unbounded sequence)
Sourcepub const UINT64_UNBOUNDED_SEQUENCE: u8 = 153
pub const UINT64_UNBOUNDED_SEQUENCE: u8 = 153
uint64 (unbounded sequence)
Sourcepub const FLOAT32_UNBOUNDED_SEQUENCE: u8 = 154
pub const FLOAT32_UNBOUNDED_SEQUENCE: u8 = 154
float32 (unbounded sequence)
Sourcepub const FLOAT64_UNBOUNDED_SEQUENCE: u8 = 155
pub const FLOAT64_UNBOUNDED_SEQUENCE: u8 = 155
float64 (unbounded sequence)
Sourcepub const BOOL_UNBOUNDED_SEQUENCE: u8 = 159
pub const BOOL_UNBOUNDED_SEQUENCE: u8 = 159
bool (unbounded sequence)
Sourcepub const STRING_UNBOUNDED_SEQUENCE: u8 = 161
pub const STRING_UNBOUNDED_SEQUENCE: u8 = 161
string (unbounded sequence)
Sourcepub const ARRAY_OFFSET: u8 = 48
pub const ARRAY_OFFSET: u8 = 48
Offset to convert single type to fixed array
Sourcepub const BOUNDED_SEQUENCE_OFFSET: u8 = 96
pub const BOUNDED_SEQUENCE_OFFSET: u8 = 96
Offset to convert single type to bounded sequence
Sourcepub const UNBOUNDED_SEQUENCE_OFFSET: u8 = 144
pub const UNBOUNDED_SEQUENCE_OFFSET: u8 = 144
Offset to convert single type to unbounded sequence
Sourcepub const fn is_bounded_sequence(type_id: u8) -> bool
pub const fn is_bounded_sequence(type_id: u8) -> bool
Check if a type ID is a bounded sequence
Sourcepub const fn is_unbounded_sequence(type_id: u8) -> bool
pub const fn is_unbounded_sequence(type_id: u8) -> bool
Check if a type ID is an unbounded sequence