pub struct Field {
pub name: &'static str,
pub ty: FieldType,
pub offset: usize,
}Expand description
One field of a ROS message, in declaration order.
offset is the byte offset of the field within the host Rust struct
(typically derived from core::mem::offset_of!). Backends that build
runtime descriptors use it to compute serializer per-field strides;
pure schema consumers (e.g. type-name renderers) may ignore it.
Fields§
§name: &'static strField name as written in the .msg IDL.
ty: FieldTypeCDR / IDL type of the field.
offset: usizeByte offset of the field within the host Rust struct.
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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