Module lib_xch::handler [] [src]

Structs

ErrorHandler

ErrorHandler returns when handler::handler_api failed somehow. CAUTION: parser_result might empty if parser is failed.

ResultHandler

ResultHandler returns the balancer's result. And it may contain warning message.

Enums

ErrorCases

All the Error Types.

WarnCases

All the Warning Types.

Functions

handler_api

the API balances the Chemical Equation by equation. It provides one balanced solution, but it may isn't the most correct solution (because it set all free variables = 1). If the equation can balance, function would return a T vector which contains the answer. If not, it would return handler::ErrorHandler which contains Delta-3 the parser's result and error message.