pub struct OrderedSet<T: Eq + PartialEq + Hash + Clone> { /* private fields */ }Implementations§
Source§impl<T: Eq + PartialEq + Hash + Clone> OrderedSet<T>
impl<T: Eq + PartialEq + Hash + Clone> OrderedSet<T>
pub fn iter(&self) -> Iter<'_, T>
pub fn contains(&self, value: &T) -> bool
pub fn try_insert_at_position(&mut self, index: usize, value: T) -> bool
pub fn try_insert_at_end(&mut self, value: T) -> bool
pub fn remove(&mut self, value: &T) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<T: Clone + Eq + PartialEq + Hash + Clone> Clone for OrderedSet<T>
impl<T: Clone + Eq + PartialEq + Hash + Clone> Clone for OrderedSet<T>
Source§fn clone(&self) -> OrderedSet<T>
fn clone(&self) -> OrderedSet<T>
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<T: Default + Eq + PartialEq + Hash + Clone> Default for OrderedSet<T>
impl<T: Default + Eq + PartialEq + Hash + Clone> Default for OrderedSet<T>
Source§fn default() -> OrderedSet<T>
fn default() -> OrderedSet<T>
Returns the “default value” for a type. Read more
Source§impl<'a, T: Eq + PartialEq + Hash + Clone> IntoIterator for &'a OrderedSet<T>
impl<'a, T: Eq + PartialEq + Hash + Clone> IntoIterator for &'a OrderedSet<T>
Auto Trait Implementations§
impl<T> Freeze for OrderedSet<T>
impl<T> RefUnwindSafe for OrderedSet<T>where
T: RefUnwindSafe,
impl<T> Send for OrderedSet<T>where
T: Send,
impl<T> Sync for OrderedSet<T>where
T: Sync,
impl<T> Unpin for OrderedSet<T>where
T: Unpin,
impl<T> UnwindSafe for OrderedSet<T>where
T: 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