Skip to main content

MAX_INLINE_DOC

Constant MAX_INLINE_DOC 

Source
pub const MAX_INLINE_DOC: usize = _; // 3_022usize
Expand description

Maximum on-disk record length that still fits inline in a B+tree leaf alongside at least one slot.

Equals the codec’s slice of the leaf’s max_inline_value budget at the worst-case key length (max_key_len()). Records exceeding this bound return Error::DocumentTooLarge.

The value is computed at compile time from crate::btree::max_inline_value so the codec and the B+tree agree on the bound: any record the codec accepts will also fit in a leaf — there is no second runtime check at insert time.