[−][src]Struct bitar::chunk_location_map::ChunkLocationMap
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]
&self,
location: &ChunkLocation
) -> impl Iterator<Item = (&ChunkLocation, &V)>
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]
fn default() -> ChunkLocationMap<V>
[src]
Auto Trait Implementations
impl<V> RefUnwindSafe for ChunkLocationMap<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for ChunkLocationMap<V> where
V: Send,
V: Send,
impl<V> Sync for ChunkLocationMap<V> where
V: Sync,
V: Sync,
impl<V> Unpin for ChunkLocationMap<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for ChunkLocationMap<V> where
V: RefUnwindSafe + UnwindSafe,
V: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,