[][src]Struct bitar::chunk_location_map::ChunkLocationMap

pub struct ChunkLocationMap<V> { /* fields omitted */ }

Methods

impl<V> ChunkLocationMap<V>[src]

pub fn new() -> Self[src]

pub fn insert(&mut self, location: ChunkLocation, value: V)[src]

Insert at location Does not verify if the given location overlaps.

pub fn remove(&mut self, location: &ChunkLocation) -> Option<V>[src]

Remove at exact location

pub fn iter_overlapping(
    &self,
    location: &ChunkLocation
) -> impl Iterator<Item = (&ChunkLocation, &V)>
[src]

Iterate all locations which the given location overlaps

pub fn iter(&self) -> impl Iterator<Item = (&ChunkLocation, &V)>[src]

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&ChunkLocation, &mut V)>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<V: Default> Default for ChunkLocationMap<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for ChunkLocationMap<V> where
    V: RefUnwindSafe

impl<V> Send for ChunkLocationMap<V> where
    V: Send

impl<V> Sync for ChunkLocationMap<V> where
    V: Sync

impl<V> Unpin for ChunkLocationMap<V> where
    V: Unpin

impl<V> UnwindSafe for ChunkLocationMap<V> where
    V: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.