Struct Map

Source
pub struct Map<S, F, D = ConstFalse> { /* private fields */ }

Trait Implementations§

Source§

impl<S, F, D> Borrowable for Map<S, F, D>

Source§

type Borrowed = Map<S, F, D>

Borrowed = Self
Source§

impl<S, F, D> HibitTree for Map<S, F, D>

Source§

const EXACT_HIERARCHY: bool = <S::Borrowed as HibitTree>::EXACT_HIERARCHY

Marker that this tree as a bitmap hierarchy does not have false-positive bits in bitmasks.
Source§

type DefaultData = D

Tree capability of returning Default value for absent elements FAST. Read more
Source§

type LevelCount = <<S as Borrowable>::Borrowed as HibitTree>::LevelCount

Hierarchy levels count (without a data level).
Source§

type LevelMask = <<S as Borrowable>::Borrowed as HibitTree>::LevelMask

Bitmask used in each Node.
Source§

fn data( &self, index: &HierarchyIndex<Self::LevelMask, Self::LevelCount>, ) -> Option<<Self as HibitTreeTypes<'_>>::Data>

Safety Read more
Source§

unsafe fn data_unchecked( &self, index: &HierarchyIndex<Self::LevelMask, Self::LevelCount>, ) -> <Self as HibitTreeTypes<'_>>::DataUnchecked

Safety Read more
Source§

unsafe fn data_or_default( &self, index: &HierarchyIndex<Self::LevelMask, Self::LevelCount>, ) -> <Self as HibitTreeTypes<'_>>::DataOrDefault

Safety Read more
Source§

fn get( &self, index: impl TryInto<HierarchyIndex<<Self as HibitTree>::LevelMask, Self::LevelCount>>, ) -> Option<<Self as HibitTreeTypes<'_>>::Data>

You can use usize or HierarchyIndex for index. Read more
Source§

unsafe fn get_unchecked( &self, index: impl TryInto<HierarchyIndex<<Self as HibitTree>::LevelMask, Self::LevelCount>>, ) -> <Self as HibitTreeTypes<'_>>::DataUnchecked

Safety Read more
Source§

fn get_or_default( &self, index: impl TryInto<HierarchyIndex<<Self as HibitTree>::LevelMask, Self::LevelCount>>, ) -> <Self as HibitTreeTypes<'_>>::DataOrDefault
where Self::DefaultData: IsConstTrue,

Panic Read more
Source§

fn iter(&self) -> Iter<'_, Self>

Source§

fn map<F>(self, f: F) -> Map<Self, F>

Source§

fn map_w_default<F>(self, f: F) -> Map<Self, F, ConstTrue>

Source§

fn ref_map<F>(&self, f: F) -> Map<&Self, F>

Source§

fn ref_map_w_default<F>(&self, f: F) -> Map<&Self, F, ConstTrue>

Source§

fn index_range() -> RangeTo<usize>

Index range this SparseHierarchy can handle - 0..width^depth. Read more
Source§

impl<'this, S, F, D> HibitTreeTypes<'this> for Map<S, F, D>

Source§

impl<S, F, D> LazyHibitTree for Map<S, F, D>
where Map<S, F, D>: RegularHibitTree,

Source§

fn materialize<T>(self) -> T
where Self: RegularHibitTree, T: FromHibitTree<Self, LevelMask = Self::LevelMask, LevelCount = Self::LevelCount>,

Make a concrete collection from a lazy/virtual one.
Source§

fn materialize_filtered<T, F>(self, f: F) -> T
where Self: RegularHibitTree, T: FromHibitTree<Self, LevelMask = Self::LevelMask, LevelCount = Self::LevelCount>, for<'a, 'b> F: UnaryFunction<&'a HibitTreeData<'b, Self>, Output = bool>,

Auto Trait Implementations§

§

impl<S, F, D> Freeze for Map<S, F, D>
where S: Freeze, F: Freeze,

§

impl<S, F, D> RefUnwindSafe for Map<S, F, D>

§

impl<S, F, D> Send for Map<S, F, D>
where S: Send, F: Send, D: Send,

§

impl<S, F, D> Sync for Map<S, F, D>
where S: Sync, F: Sync, D: Sync,

§

impl<S, F, D> Unpin for Map<S, F, D>
where S: Unpin, F: Unpin, D: Unpin,

§

impl<S, F, D> UnwindSafe for Map<S, F, D>
where S: UnwindSafe, F: UnwindSafe, D: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Take<T> for T

Source§

fn take(self) -> T

Takes self as T. Read more
Source§

fn try_take(self) -> Option<T>

Returned Option variant can be used for compile-time switch.
Source§

fn take_or_clone(self) -> T

Return self as is for T, clone for &T.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> RegularHibitTree for T
where T: HibitTree + for<'this> RegularHibitTreeTypes<'this>,