private static void generateRustDoc(
        final StringBuilder sb,
        final int level,
        final Token typeToken,
        final Encoding encoding) throws IOException
    {
        indent(sb, level, "/// - min value: %s\n", encoding.applicableMinValue());
        indent(sb, level, "/// - max value: %s\n", encoding.applicableMaxValue());
        indent(sb, level, "/// - null value: %s\n", rustNullLiteral(encoding));
        indent(sb, level, "/// - characterEncoding: %s\n", encoding.characterEncoding());
        indent(sb, level, "/// - semanticType: %s\n", encoding.semanticType());
        indent(sb, level, "/// - encodedOffset: %d\n", typeToken.offset());
        indent(sb, level, "/// - encodedLength: %d\n", typeToken.encodedLength());
        indent(sb, level, "/// - version: %d\n", typeToken.version());
    }
Create a new Rust language {@link CodeGenerator}.

@param ir            for the messages and types.
@param crateVersion  for the generated crate.
@param outputManager for generating the codecs to.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/rust/RustGenerator.java