encoder property

Returns the encoder from S to T.

It may be stateful and should not be reused.

Implementation

@override
BorshRustEnumSizedEncoder<T> get encoder => BorshRustEnumSizedEncoder(variants);