Module rustdb::util

source ·
Expand description

Utility functions and macros, SmallSet.

Structs

  • Set of usize, optimised for elements < 64. default() is empty set.

Functions

  • Extract unsigned value of n bytes from data.
  • Extract f32 from byte data.
  • Extract f64 from byte data.
  • Extract u64 from byte data.
  • Convert a hex char byte to a byte in range 0..15.
  • Extract signed value of n bytes from data.
  • Store signed value of n bytes to data ( with overflow check ).
  • New Data ( Arc::new(Vec::new()) ).
  • Wrap a type in Rc + RefCell.
  • Construct a new map wrapped in a RefCell.
  • Convert hex literal to bytes.
  • Store unsigned value of n bytes to data.
  • Store u64 to byte data.
  • Convert bytes to hex string.