pub enum SetValue {
Hash(GcPtr<PersistentHashSet>),
Sorted(GcPtr<SortedSet>),
}Expand description
A set value, either a hash set or a sorted set.
Variants§
Implementations§
Source§impl SetValue
impl SetValue
pub fn empty() -> Self
pub fn count(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, key: &Value) -> bool
pub fn conj(&self, value: Value) -> Self
pub fn conj_mut(&mut self, value: Value) -> &mut Self
pub fn disj(&self, value: &Value) -> Self
pub fn iter(&self) -> Box<dyn Iterator<Item = &Value> + '_>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SetValue
impl !Send for SetValue
impl !Sync for SetValue
impl !UnwindSafe for SetValue
impl Freeze for SetValue
impl Unpin for SetValue
impl UnsafeUnpin for SetValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more