Skip to main content

to_name_type

Function to_name_type 

Source
pub fn to_name_type(x: &str) -> Result<InnerNameType>
Expand description

Convert a string to a device name.

ยงErrors

Returns an error if x is longer than DEVICE_NAME_LEN bytes.