Inline the content of a function without duplicating code. Useful when duplicating code is desired but you are too embarrassed to do it manually.
Generate several common methods for structs automatically.
An attribute proc macro to convert structs with named fields of the same generic type into a single-array-field tuple struct with array-index-based accessor and mutator methods.
A configurable get/set/get_mut derive macro
A super powerful macro for generating new structs with getters, setters, and `From` or `TryFrom` implementation based on the given struct.
Static, whole program stack usage analyzer
当前 `crate`是对'getset' 的扩展。 主要添加了 `get_clone`来返回字段的克隆对象, 当为基础类型时 `get` 自动转为 `get_copy` , 当字段有自定义注解时,自动对 struct 的注解进行 `skip` , 当字段类型为 `Option<T>` 时,返回 `Option<&T>`, 同时方法默认为 `pub`级别。
Attribute and derive macros for creating accessors for struct.
A set of utilities for reading and writing bitstreams. This crate includes BitStreamReader, BitStreamWriter, and additional utilities for handling bit-level data operations.
Mechanism to define map of options for a fuction and its defaults laconically.
Quick error declarations and automatic conversions between errors for precisely typed error handling. Inspired by Zig's error set type.
A procedural macro for generating the most basic getters and setters on fields.