Struct Intersection

Source
pub struct Intersection<S0, S1> { /* private fields */ }

Trait Implementations§

Source§

impl<S0, S1> Borrowable for Intersection<S0, S1>

Source§

type Borrowed = Intersection<S0, S1>

Borrowed = Self
Source§

impl<S0, S1> HibitTree for Intersection<S0, S1>
where S0: Borrowable<Borrowed: HibitTree>, S1: Borrowable<Borrowed: HibitTree<LevelCount = <S0::Borrowed as HibitTree>::LevelCount, LevelMask = <S0::Borrowed as HibitTree>::LevelMask>>,

Source§

type DefaultData = <<<S0 as Borrowable>::Borrowed as HibitTree>::DefaultData as ConstBool>::And<<<S1 as Borrowable>::Borrowed as HibitTree>::DefaultData>

true if S0 & S1 are having DefaultData.

Source§

const EXACT_HIERARCHY: bool = false

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

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

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

type LevelMask = <<S0 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, S0, S1> HibitTreeTypes<'this> for Intersection<S0, S1>
where S0: Borrowable<Borrowed: HibitTree>, S1: Borrowable<Borrowed: HibitTree<LevelCount = <S0::Borrowed as HibitTree>::LevelCount, LevelMask = <S0::Borrowed as HibitTree>::LevelMask>>,

Source§

type Data = (<<S0 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::Data, <<S1 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::Data)

Source§

type DataUnchecked = (<<S0 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::DataUnchecked, <<S1 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::DataUnchecked)

Source§

type DataOrDefault = (<<S0 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::DataOrDefault, <<S1 as Borrowable>::Borrowed as HibitTreeTypes<'this>>::DataOrDefault)

Source§

type Cursor = Cursor<'this, S0, S1>

Source§

impl<S0, S1> LazyHibitTree for Intersection<S0, S1>

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<S0, S1> Freeze for Intersection<S0, S1>
where S0: Freeze, S1: Freeze,

§

impl<S0, S1> RefUnwindSafe for Intersection<S0, S1>

§

impl<S0, S1> Send for Intersection<S0, S1>
where S0: Send, S1: Send,

§

impl<S0, S1> Sync for Intersection<S0, S1>
where S0: Sync, S1: Sync,

§

impl<S0, S1> Unpin for Intersection<S0, S1>
where S0: Unpin, S1: Unpin,

§

impl<S0, S1> UnwindSafe for Intersection<S0, S1>
where S0: UnwindSafe, S1: 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>,