Struct horde::sync_table::Write [−][src]
pub struct Write<'a, K, V, S = DefaultHashBuilder> { /* fields omitted */ }
A handle to a SyncTable with write access.
Implementations
impl<'a, K: Hash + Send + Clone, V: Send + Clone, S: BuildHasher> Write<'a, K, V, S>
[src]
impl<'a, K: Hash + Send + Clone, V: Send + Clone, S: BuildHasher> Write<'a, K, V, S>
[src]pub fn insert_new(
&mut self,
key: K,
value: V,
hash: Option<u64>
) -> (&'a K, &'a V)
[src]
&mut self,
key: K,
value: V,
hash: Option<u64>
) -> (&'a K, &'a V)
Inserts a new element into the table, and returns a reference to it.
This does not check if the given element already exists in the table.
pub fn reserve_one(&mut self)
[src]
Reserve room for one more element.
Auto Trait Implementations
impl<'a, K, V, S = RandomState> !RefUnwindSafe for Write<'a, K, V, S>
impl<'a, K, V, S = RandomState> !RefUnwindSafe for Write<'a, K, V, S>
impl<'a, K, V, S = RandomState> !UnwindSafe for Write<'a, K, V, S>
impl<'a, K, V, S = RandomState> !UnwindSafe for Write<'a, K, V, S>