Releases: khonsulabs/kempt
Releases · khonsulabs/kempt
v0.2.3
v0.2.2
v0.2.1
v0.2.0
Added
Set<T>
is a new ordered collection type for this crate. It is similar to
BTreeSet, but uses this crate'sMap
type under the hood.Map::insert_with
takes a closure for the value and only invokes the closure
if they key is not found in the collection. If the key is found in the
collection, the map is left unchanged and the key provided to this function is
returned.Map::get_field
returns theField
contained within the map, allowing access
to both the Key and value.Map::keys
/Map::into_keys
return iterators over the keys of a Map.Map::union
/Map::intersection
/Map::difference
are new functions that
return iterators that efficiently perform the "set" operations.Field::into_key
takes ownership of the field and returns the owned Key.Field::into_parts
takes ownership of the field and returns a(Key, Value)
tuple.Entry::or_default
inserts a default value for the entry if it is vacant. A
mutable reference to the entry's value is returned.VacantEntry::key
returns a reference to the key being inserted.