pub struct FieldDescriptor<'a> {
pub name: &'a str,
pub ty: FieldType,
pub array_len: u8,
pub extension: bool,
}Expand description
One field of a message: its name, type, and place in the layout.
Fields§
§name: &'a strThe field name as the dialect writes it, such as "custom_mode".
ty: FieldTypeThe field’s scalar type, which for an array is its element type.
array_len: u8The element count for an array field, or 0 for a scalar.
extension: boolWhether this is a MAVLink 2 extension field.
Extension fields sit after the base fields in declaration order, are excluded from
the CRC_EXTRA seed, and may be absent from a frame sent by an older peer, in
which case they read as zero.
Implementations§
Source§impl FieldDescriptor<'_>
impl FieldDescriptor<'_>
Trait Implementations§
Source§impl<'a> Clone for FieldDescriptor<'a>
impl<'a> Clone for FieldDescriptor<'a>
Source§fn clone(&self) -> FieldDescriptor<'a>
fn clone(&self) -> FieldDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for FieldDescriptor<'a>
Source§impl<'a> Debug for FieldDescriptor<'a>
impl<'a> Debug for FieldDescriptor<'a>
impl<'a> Eq for FieldDescriptor<'a>
Source§impl<'a> PartialEq for FieldDescriptor<'a>
impl<'a> PartialEq for FieldDescriptor<'a>
Source§fn eq(&self, other: &FieldDescriptor<'a>) -> bool
fn eq(&self, other: &FieldDescriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for FieldDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldDescriptor<'a>
impl<'a> RefUnwindSafe for FieldDescriptor<'a>
impl<'a> Send for FieldDescriptor<'a>
impl<'a> Sync for FieldDescriptor<'a>
impl<'a> Unpin for FieldDescriptor<'a>
impl<'a> UnsafeUnpin for FieldDescriptor<'a>
impl<'a> UnwindSafe for FieldDescriptor<'a>
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