encode method

T encode (S input)

Encodes input.

The input is encoded as if by encoder.convert.

Implementation

T encode(S input) => encoder.convert(input);