Struct bitmaptrie::BorrowSync [] [src]

pub struct BorrowSync<'a, T: 'a + Send + Sync> {
    // some fields omitted
}

Borrows a Trie exposing a Sync-type-safe subset of it's methods. No structure modifying methods are included. Each borrow gets it's own path cache. The lifetime of this type is the lifetime of the mutable borrow. This can be used to parallelize structure-immutant changes.

Methods

impl<'a, T: Send + Sync> BorrowSync<'a, T>
[src]

fn get(&self, index: usize) -> Option<&'a T>

Retrieve a reference to the value at the given index. Updates the local path cache to point at this index.

fn borrow_sharded(&self, n: usize) -> BorrowShardImmut<'a, T>

Return a type that can be iterated over to produce interior nodes that themselves can be iterated over. This type is immutable.

Trait Implementations

impl<'a, T: 'a + Send + Sync> Send for BorrowSync<'a, T>
[src]

impl<'a, T: 'a + Send + Sync> Sync for BorrowSync<'a, T>
[src]

impl<'a, T: Send + Sync> Clone for BorrowSync<'a, T>
[src]

fn clone(&self) -> BorrowSync<'a, T>

Clone this instance: the new instance can be sent to another thread. It has it's own path cache.

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a, T: Send + Sync> Drop for BorrowSync<'a, T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more