Skip to main content
u16_le_to_bytes
vest_
lib
In vest_
lib::
combinators::
uints::
spec
vest_lib
::
combinators
::
uints
::
spec
Function
u16_
le_
to_
bytes
Copy item path
Source
pub
open spec
fn u16_le_to_bytes(o:
u16
) -> [
u8
;
2
]
Expand description
{ [(o &
0xff
)
as
u8, ((o >>
8
) &
0xff
)
as
u8] }