pub struct DynamicField { /* private fields */ }Available on crate feature
dialect-dynamic only.Expand description
Metadata for a field in a runtime-loaded message definition.
Implementations§
Source§impl DynamicField
impl DynamicField
Sourcepub fn primitive_type(&self) -> &str
pub fn primitive_type(&self) -> &str
The MAVLink primitive type, such as uint32_t or float.
Sourcepub fn encoded_size(&self) -> usize
pub fn encoded_size(&self) -> usize
Number of bytes occupied by this field.
Sourcepub fn is_extension(&self) -> bool
pub fn is_extension(&self) -> bool
Whether this is a MAVLink 2 extension field.
Trait Implementations§
Source§impl Clone for DynamicField
impl Clone for DynamicField
Source§impl Debug for DynamicField
impl Debug for DynamicField
impl Eq for DynamicField
Source§impl PartialEq for DynamicField
impl PartialEq for DynamicField
impl StructuralPartialEq for DynamicField
Auto Trait Implementations§
impl Freeze for DynamicField
impl RefUnwindSafe for DynamicField
impl Send for DynamicField
impl Sync for DynamicField
impl Unpin for DynamicField
impl UnsafeUnpin for DynamicField
impl UnwindSafe for DynamicField
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