Skip to main content

parse_object_type

Function parse_object_type 

Source
pub fn parse_object_type(s: &str) -> Result<ObjectType, String>
Expand description

Parse an object type from a string.

Accepts:

  • Full names case-insensitive with hyphens: analog-input, ANALOG_INPUT
  • Common abbreviations: ai, ao, av, bi, bo, bv, dev, etc.
  • Numeric values: 0, 1, etc.