Method lrs::num::W32::from_be

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

Syntax

impl W32 {
    fn from_be(self) -> W32
}

Examples

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

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