pub struct UniqueList<E: ListEntry> { /* private fields */ }Implementations§
Source§impl<E: ListEntry> UniqueList<E>
impl<E: ListEntry> UniqueList<E>
pub fn new() -> Self
pub fn with_capacity(size: usize) -> Self
pub fn try_insert(&mut self, entry: E) -> Result<(), DuplicateEntry<E>>
pub fn has_entry<Q>(&self, query: &Q) -> boolwhere
E: PartialEq<Q>,
pub fn get<Q>(&self, query: &Q) -> Option<&E>where
E: PartialEq<Q>,
pub fn iter(&self) -> Iter<'_, E>
pub fn iter_mut(&mut self) -> IterMut<'_, E>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<E: Clone + ListEntry> Clone for UniqueList<E>
impl<E: Clone + ListEntry> Clone for UniqueList<E>
Source§fn clone(&self) -> UniqueList<E>
fn clone(&self) -> UniqueList<E>
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<E: ListEntry> Default for UniqueList<E>
impl<E: ListEntry> Default for UniqueList<E>
Source§impl<'de, E> Deserialize<'de> for UniqueList<E>where
E: Deserialize<'de> + ListEntry,
impl<'de, E> Deserialize<'de> for UniqueList<E>where
E: Deserialize<'de> + ListEntry,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E> Serialize for UniqueList<E>
impl<E> Serialize for UniqueList<E>
impl<E: Eq + ListEntry> Eq for UniqueList<E>
impl<E: ListEntry> StructuralPartialEq for UniqueList<E>
Auto Trait Implementations§
impl<E> Freeze for UniqueList<E>
impl<E> RefUnwindSafe for UniqueList<E>where
E: RefUnwindSafe,
impl<E> Send for UniqueList<E>where
E: Send,
impl<E> Sync for UniqueList<E>where
E: Sync,
impl<E> Unpin for UniqueList<E>where
E: Unpin,
impl<E> UnwindSafe for UniqueList<E>where
E: 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