pub enum MavType {
}
Variants§
UInt8MavlinkVersion
UInt8
UInt16
UInt32
UInt64
Int8
Int16
Int32
Int64
Char
Float
Double
Array(Box<MavType>, usize)
Implementations§
Source§impl MavType
impl MavType
Sourcepub fn rust_reader(&self, val: &TokenStream, buf: Ident) -> TokenStream
pub fn rust_reader(&self, val: &TokenStream, buf: Ident) -> TokenStream
Emit reader of a given type
Sourcepub fn rust_writer(&self, val: &TokenStream, buf: Ident) -> TokenStream
pub fn rust_writer(&self, val: &TokenStream, buf: Ident) -> TokenStream
Emit writer of a given type
Sourcepub fn primitive_type(&self) -> String
pub fn primitive_type(&self) -> String
Used for crc calculation
Sourcepub fn rust_type(&self) -> String
pub fn rust_type(&self) -> String
Return rust equivalent of a given Mavtype Used for generating struct fields.
pub fn emit_default_value(&self) -> TokenStream
Sourcepub fn rust_primitive_type(&self) -> String
pub fn rust_primitive_type(&self) -> String
Return rust equivalent of the primitive type of a MavType. The primitive type is the type itself for all except arrays, in which case it is the element type.
Trait Implementations§
impl StructuralPartialEq for MavType
Auto Trait Implementations§
impl Freeze for MavType
impl RefUnwindSafe for MavType
impl Send for MavType
impl Sync for MavType
impl Unpin for MavType
impl UnwindSafe for MavType
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