pub struct ElectronicLevel {
pub roll: u32,
pub pitch: u32,
}Expand description
Picture style information
Fields§
§roll: u32Degrees x 100
pitch: u3210.00 degrees
Trait Implementations§
Source§impl Clone for ElectronicLevel
impl Clone for ElectronicLevel
Source§fn clone(&self) -> ElectronicLevel
fn clone(&self) -> ElectronicLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElectronicLevel
impl Debug for ElectronicLevel
Source§impl From<ElectronicLevel> for Header
impl From<ElectronicLevel> for Header
Source§fn from(h: ElectronicLevel) -> Header
fn from(h: ElectronicLevel) -> Header
Converts to this type from the input type.
Source§impl FromBytes for ElectronicLevel
impl FromBytes for ElectronicLevel
Source§const PREFERS_LE: bool = true
const PREFERS_LE: bool = true
Is it preferred to represent this type as bytes in the little endian order?
Source§fn from_le_bytes(bytes: Self::Bytes) -> Self
fn from_le_bytes(bytes: Self::Bytes) -> Self
Create a value of this type from its representation as a byte array in little endian.
Source§fn from_be_bytes(bytes: Self::Bytes) -> Self
fn from_be_bytes(bytes: Self::Bytes) -> Self
Create a value of this type from its representation as a byte array in big endian.
Source§fn from_bytes(bytes: Self::Bytes) -> Self
fn from_bytes(bytes: Self::Bytes) -> Self
Create a value of this type from its representation as a byte array in the preferred
byte order, set in the associated constant
PREFERS_LE.Source§fn from_ne_bytes(bytes: Self::Bytes) -> Self
fn from_ne_bytes(bytes: Self::Bytes) -> Self
Create a value of this type from its representation as a byte array in native endian. Read more
Source§impl MlvHeader for ElectronicLevel
impl MlvHeader for ElectronicLevel
Source§const MAGIC_BYTES: [u8; 4]
const MAGIC_BYTES: [u8; 4]
Magic bytes that denote this type of the header
Source§impl ToBytes for ElectronicLevel
impl ToBytes for ElectronicLevel
Source§const PREFERS_LE: bool = true
const PREFERS_LE: bool = true
Is it preferred to represent this type as bytes in the little endian order?
Source§fn to_le_bytes(self) -> Self::Bytes
fn to_le_bytes(self) -> Self::Bytes
Return the memory representation of this type as a byte array in little endian byte order.
Source§fn to_be_bytes(self) -> Self::Bytes
fn to_be_bytes(self) -> Self::Bytes
Return the memory representation of this type as a byte array in big endian byte order.
Source§fn to_bytes(self) -> Self::Bytes
fn to_bytes(self) -> Self::Bytes
Return the memory representation of this type as a byte array in the preferred
byte order, set in the associated constant
PREFERS_LE.Source§fn to_ne_bytes(self) -> Self::Bytes
fn to_ne_bytes(self) -> Self::Bytes
Return the memory representation of this type as a byte array in native endian byte order. Read more
impl Copy for ElectronicLevel
Auto Trait Implementations§
impl Freeze for ElectronicLevel
impl RefUnwindSafe for ElectronicLevel
impl Send for ElectronicLevel
impl Sync for ElectronicLevel
impl Unpin for ElectronicLevel
impl UnsafeUnpin for ElectronicLevel
impl UnwindSafe for ElectronicLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<B, T> TryFromBytes for T
impl<B, T> TryFromBytes for T
Source§type Error = Infallible
type Error = Infallible
A type containing the failure of creating a value of the type from bytes.
Source§fn try_from_le_bytes(bytes: B) -> Result<T, <T as TryFromBytes>::Error>
fn try_from_le_bytes(bytes: B) -> Result<T, <T as TryFromBytes>::Error>
Create a value of this type from its representation as a byte array in little endian.
Source§fn try_from_be_bytes(bytes: B) -> Result<T, <T as TryFromBytes>::Error>
fn try_from_be_bytes(bytes: B) -> Result<T, <T as TryFromBytes>::Error>
Create a value of this type from its representation as a byte array in big endian.
Source§const PREFERS_LE: bool = true
const PREFERS_LE: bool = true
Is it preferred to represent this type as bytes in the little endian order?