get_function_unchecked

Function get_function_unchecked 

Source
pub unsafe fn get_function_unchecked(data: &[u8]) -> (ModbusFunction, &[u8])
Expand description

Gets the function code of the given modbus data.

ยงSafety

Providing data with less than one byte is undefined behavior