Function apache_avro::schema_equality::set_schemata_equality_comparator
source ยท pub fn set_schemata_equality_comparator(
comparator: Box<dyn SchemataEq>,
) -> Result<(), Box<dyn SchemataEq>>
Expand description
Sets a custom schemata equality comparator.
Returns a unit if the registration was successful or the already registered comparator if the registration failed.
Note: This function must be called before parsing any schema because this will register the default comparator and the registration is one time only!