bison/object_id

Types

pub opaque type ObjectId

Functions

pub fn compare(a: ObjectId, b: ObjectId) -> Order
pub fn from_bit_array(id: BitArray) -> Result(ObjectId, Nil)
pub fn from_datetime(datetime: Time) -> ObjectId

see birl!

pub fn from_int_list(id: List(Int)) -> Result(ObjectId, Nil)
pub fn from_string(id: String) -> Result(ObjectId, Nil)
pub fn new() -> ObjectId
pub fn range(
  from a: ObjectId,
  to b: Option(ObjectId),
  step s: Duration,
) -> Iterator(ObjectId)

can be used to create a time range starting from time a with step s, which is of type duration.Duration from package birl

if b is option.None the range will be infinite

pub fn to_bit_array(id: ObjectId) -> BitArray
pub fn to_datetime(id: ObjectId) -> Time

see birl!

pub fn to_int_list(id: ObjectId) -> List(Int)
pub fn to_string(id: ObjectId) -> String
Search Document