Function ion_schema::isl::isl_type::v_2_0::load_isl_type
source · pub fn load_isl_type(bytes: &[u8]) -> IonSchemaResult<IslType>
Expand description
Loads an IslType using the bytes that represent an ISL type definition. Returns an error if the given bytes representation is syntactically incorrect as per Ion Schema specification’s grammar.
Note: This method allows loading both named and anonymous definition.