pub struct VariableCardD3<V: V2<usize>>(/* private fields */);
Expand description
A variable cardinality of dimension D3
vectors such that every child
in every lower dimension can have different numbers of children.
Trait Implementations§
Source§impl<V: V2<usize>> Card<D3> for VariableCardD3<V>
impl<V: V2<usize>> Card<D3> for VariableCardD3<V>
Source§fn is_rectangular(&self) -> bool
fn is_rectangular(&self) -> bool
Returns true if the cardinality is bounded and rectangular; i.e, Read more
Source§fn cardinality_of(&self, idx: impl Into<<D3 as Dim>::CardIdx>) -> usize
fn cardinality_of(&self, idx: impl Into<<D3 as Dim>::CardIdx>) -> usize
Returns the cardinality of the child of the vector at the given
idx
.Source§fn child_card(&self, i: usize) -> impl Card<<D3 as Dim>::PrevDim>
fn child_card(&self, i: usize) -> impl Card<<D3 as Dim>::PrevDim>
Returns the cardinality of the child of this vector at the given
left_most_idx
.Source§fn child_fun<T, F>(
&self,
i: usize,
fun: F,
) -> impl Fn(<<D3 as Dim>::PrevDim as Dim>::Idx) -> T
fn child_fun<T, F>( &self, i: usize, fun: F, ) -> impl Fn(<<D3 as Dim>::PrevDim as Dim>::Idx) -> T
Creates a function, say
new_fun
, which applies the first of the indices to
left_most_index
such that: Read moreSource§impl<V: Clone + V2<usize>> Clone for VariableCardD3<V>
impl<V: Clone + V2<usize>> Clone for VariableCardD3<V>
Source§fn clone(&self) -> VariableCardD3<V>
fn clone(&self) -> VariableCardD3<V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<V: Copy + V2<usize>> Copy for VariableCardD3<V>
Auto Trait Implementations§
impl<V> Freeze for VariableCardD3<V>where
V: Freeze,
impl<V> RefUnwindSafe for VariableCardD3<V>where
V: RefUnwindSafe,
impl<V> Send for VariableCardD3<V>where
V: Send,
impl<V> Sync for VariableCardD3<V>where
V: Sync,
impl<V> Unpin for VariableCardD3<V>where
V: Unpin,
impl<V> UnwindSafe for VariableCardD3<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more