pub struct BTreeMapOptions {
pub node_target_bytes: u16,
pub allocation_unit_bytes: u16,
}Expand description
Allocation policy for one B-tree. The map persists this choice on creation.
Fields§
§node_target_bytes: u16Target reservation for an encoded node. Bounded codecs can use a smaller target. The default is 1,024 bytes and the minimum is 256.
allocation_unit_bytes: u16Smallest allocator block in bytes. Successive block sizes double. The default and minimum are 256. For framed 1 MiB values, 257 saves space by allowing the payload and frame to fit in 4,096 units.
Trait Implementations§
Source§impl Clone for BTreeMapOptions
impl Clone for BTreeMapOptions
impl Copy for BTreeMapOptions
Source§impl Debug for BTreeMapOptions
impl Debug for BTreeMapOptions
Source§impl Default for BTreeMapOptions
impl Default for BTreeMapOptions
impl Eq for BTreeMapOptions
Source§impl PartialEq for BTreeMapOptions
impl PartialEq for BTreeMapOptions
impl StructuralPartialEq for BTreeMapOptions
Auto Trait Implementations§
impl Forget for BTreeMapOptions
impl Freeze for BTreeMapOptions
impl Move for BTreeMapOptions
impl RefUnwindSafe for BTreeMapOptions
impl Send for BTreeMapOptions
impl Sync for BTreeMapOptions
impl Unpin for BTreeMapOptions
impl UnsafeUnpin for BTreeMapOptions
impl UnwindSafe for BTreeMapOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more