XiLaiTL/moobile/vendor/rabbita/slotmap does not have a README file

    type Id derive(Compare, Eq, Hash)

    Id::compare

    fn Id::compare(Id, Id) -> Int

    Id::equal

    fn Id::equal(Id, Id) -> Bool

    Id::hash

    fn Id::hash(self : Id) -> Int

    Id::hash_combine

    fn Id::hash_combine(Id, Hasher) -> Unit

    Id::not_equal

    fn Id::not_equal(x : Id, y : Id) -> Bool

    Id::op_ge

    fn Id::op_ge(x : Id, y : Id) -> Bool

    Id::op_gt

    fn Id::op_gt(x : Id, y : Id) -> Bool

    Id::op_le

    fn Id::op_le(x : Id, y : Id) -> Bool

    Id::op_lt

    fn Id::op_lt(x : Id, y : Id) -> Bool

    SlotMap

    type SlotMap[T]

    SlotMap::SlotMap

    fn[T] SlotMap::SlotMap() -> SlotMap[T]

    SlotMap::allocate

    fn[T] SlotMap::allocate(arena : SlotMap[T]) -> Id

    SlotMap::allocate_with

    fn[T] SlotMap::allocate_with(arena : SlotMap[T], f : (Id) -> T) -> Id

    SlotMap::free

    fn[T] SlotMap::free(arena : SlotMap[T], id : Id) -> Unit

    SlotMap::get

    fn[T] SlotMap::get(arena : SlotMap[T], id : Id) -> T?

    SlotMap::read

    #alias("_[_]")
    fn[T] SlotMap::read(arena : SlotMap[T], id : Id) -> T

    SlotMap::write

    #alias("_[_]=_")
    fn[T] SlotMap::write(arena : SlotMap[T], id : Id, value : T) -> Unit

    Source Files