pub struct ValueSetUpdates<K>(/* private fields */);Expand description
An update for updating a ValueSet<K>
Implementations§
Source§impl<K> ValueSetUpdates<K>
impl<K> ValueSetUpdates<K>
pub fn new() -> ValueSetUpdates<K>
pub fn clear(&mut self) -> &mut ValueSetUpdates<K>
pub fn add(&mut self, k: K) -> &mut ValueSetUpdates<K>
pub fn del(&mut self, k: K) -> &mut ValueSetUpdates<K>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> <&ValueSetUpdates<K> as IntoIterator>::IntoIter
Trait Implementations§
Source§impl<K> Clone for ValueSetUpdates<K>where
K: Clone,
impl<K> Clone for ValueSetUpdates<K>where
K: Clone,
Source§fn clone(&self) -> ValueSetUpdates<K>
fn clone(&self) -> ValueSetUpdates<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K> Debug for ValueSetUpdates<K>where
K: Debug,
impl<K> Debug for ValueSetUpdates<K>where
K: Debug,
Source§impl<K> Default for ValueSetUpdates<K>
impl<K> Default for ValueSetUpdates<K>
Source§fn default() -> ValueSetUpdates<K>
fn default() -> ValueSetUpdates<K>
Returns the “default value” for a type. Read more
Source§impl<'de, K> Deserialize<'de> for ValueSetUpdates<K>where
K: Deserialize<'de>,
impl<'de, K> Deserialize<'de> for ValueSetUpdates<K>where
K: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValueSetUpdates<K>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValueSetUpdates<K>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, K> IntoIterator for &'a ValueSetUpdates<K>
impl<'a, K> IntoIterator for &'a ValueSetUpdates<K>
Source§type Item = &'a ValueSetUpdate<K>
type Item = &'a ValueSetUpdate<K>
The type of the elements being iterated over.
Source§type IntoIter = ValueSetUpdatesIter<'a, K>
type IntoIter = ValueSetUpdatesIter<'a, K>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a ValueSetUpdates<K> as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a ValueSetUpdates<K> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K> IntoIterator for ValueSetUpdates<K>
impl<K> IntoIterator for ValueSetUpdates<K>
Source§type Item = ValueSetUpdate<K>
type Item = ValueSetUpdate<K>
The type of the elements being iterated over.
Source§type IntoIter = ValueSetUpdatesIntoIter<K>
type IntoIter = ValueSetUpdatesIntoIter<K>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ValueSetUpdates<K> as IntoIterator>::IntoIter
fn into_iter(self) -> <ValueSetUpdates<K> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<K> PartialEq for ValueSetUpdates<K>where
K: PartialEq,
impl<K> PartialEq for ValueSetUpdates<K>where
K: PartialEq,
Source§impl<K> Serialize for ValueSetUpdates<K>where
K: Serialize,
impl<K> Serialize for ValueSetUpdates<K>where
K: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<K> Eq for ValueSetUpdates<K>where
K: Eq,
impl<K> StructuralPartialEq for ValueSetUpdates<K>
Auto Trait Implementations§
impl<K> Freeze for ValueSetUpdates<K>
impl<K> RefUnwindSafe for ValueSetUpdates<K>where
K: RefUnwindSafe,
impl<K> Send for ValueSetUpdates<K>where
K: Send,
impl<K> Sync for ValueSetUpdates<K>where
K: Sync,
impl<K> Unpin for ValueSetUpdates<K>where
K: Unpin,
impl<K> UnwindSafe for ValueSetUpdates<K>where
K: UnwindSafe,
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