Skip to main content

register_decoder

Function register_decoder 

Source
pub fn register_decoder(decoder: Box<dyn Decoder>)
Expand description

Register a custom decoder for scanners compiled afterward.

Use try_register_decoder when the caller can handle a registration error. This compatibility entry point records any error, and later scanner compilation returns it. Existing compiled scanners retain their immutable decoder plan.