Method lrs::num::W16::from_le

Interprets this integer as a value in little-endian representation and returns the value in host-endian representation.

Syntax

impl W16 {
    fn from_le(self) -> W16
}

Examples

This example shows the behavior on a little-endian machine.

let x: u16 = 0x0001;
assert!(x.from_be() == 1);