Struct imageflow_types::collections::AppendOnlySet
[−]
[src]
pub struct AppendOnlySet<T> { /* fields omitted */ }
Provides interior mutability for a add-only set. Items can be added (a reference is returned) References can be looked up via a pointer to the item
Methods
impl<T> AppendOnlySet<T>
[src]
fn with_capacity(slots: usize) -> AppendOnlySet<T>
fn add(&self, value: T) -> &T
fn get_reference(&self, ptr: *const T) -> Option<&T>
fn contains(&self, item: *const T) -> bool
fn get_mut_vec(&mut self) -> &mut Vec<Box<T>>
If you have a mutable reference, you can do whatever you like, since there cannot be any other outstanding references
fn iter(&self) -> IterAppendOnlySet<T>
Trait Implementations
impl<T: Debug> Debug for AppendOnlySet<T>
[src]
impl<T: Clone> Clone for AppendOnlySet<T>
[src]
fn clone(&self) -> AppendOnlySet<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for AppendOnlySet<T>
[src]
fn eq(&self, __arg_0: &AppendOnlySet<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AppendOnlySet<T>) -> bool
This method tests for !=
.