feat(core/rust): add Map::is_empty()

pull/3532/head
matejcik 4 months ago committed by Jiří Musil
parent 9c72c7c99d
commit 63360a7417

@ -69,6 +69,10 @@ impl Map {
self.used()
}
pub fn is_empty(&self) -> bool {
self.len() == 0
}
pub fn elems(&self) -> &[MapElem] {
// SAFETY: `self.table` should always point to an array of `MapElem` of
// `self.len()` items valid at least for the lifetime of `self`.

Loading…
Cancel
Save