A bit field stores a field in a specified number of individual bits instead of a whole storage unit. In Rust FFI, bindgen generates accessor functions because Rust does not natively support bit fields. section 4.6
NGINX buffer flags
The C ngx_buf_t structure declares memory, last_buf, and last_in_chain as one-bit fields. Generated setters such as set_last_buf(1), set_memory(1), and set_last_in_chain(1) configure these flags before sending the response. section 4.6
struct ngx_buf_t {
... (some fields omitted)
unsigned memory:1;
unsigned last_buf:1;
unsigned last_in_chain:1;
};
Inspect the compact C declaration that represents three one-bit buffer flags. section 4.6

