Trait mavlink::utils::RustDefault
source · pub trait RustDefault: Copy {
// Required method
fn rust_default() -> Self;
}
Expand description
A trait very similar to Default
but is only implemented for the equivalent Rust types to
MavType
s.
This is only needed because rust doesn’t currently implement Default
for arrays
of all sizes. In particular this trait is only ever used when the “serde” feature is enabled.
For more information, check out this issue.
Required Methods§
fn rust_default() -> Self
Object Safety§
This trait is not object safe.