add RocSet.is_empty

This commit is contained in:
Brian Hicks 2022-09-07 15:08:55 -05:00
parent 3bcefd7f68
commit 1f31e16896
No known key found for this signature in database
GPG key ID: C4F324B9CAAB0D50

View file

@ -12,6 +12,10 @@ impl<T> RocSet<T> {
self.0.len()
}
pub fn is_empty(&self) -> bool {
self.0.is_empty()
}
#[allow(unused)]
pub fn with_capacity(capacity: usize) -> Self {
Self(RocDict::with_capacity(capacity))