static String getBufOffset(final Token token)
    {
        final int offset = token.offset();
        if (offset > 0)
        {
            return "offset + " + offset;
        }

        return "offset";
    }
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