pub struct CardD1(/* private fields */);
Expand description
A cardinality of dimension D1
vectors, which is simply a length.
Trait Implementations§
Source§impl Card<D1> for CardD1
impl Card<D1> for CardD1
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, _: impl Into<<D1 as Dim>::CardIdx>) -> usize
fn cardinality_of(&self, _: impl Into<<D1 as Dim>::CardIdx>) -> usize
Returns the cardinality of the child of the vector at the given
idx
.Source§fn child_card(
&self,
_: <D1 as Dim>::ChildIdx,
) -> impl Card<<D1 as Dim>::PrevDim>
fn child_card( &self, _: <D1 as Dim>::ChildIdx, ) -> impl Card<<D1 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,
_: <D1 as Dim>::ChildIdx,
fun: F,
) -> impl Fn(<<D1 as Dim>::PrevDim as Dim>::Idx) -> T
fn child_fun<T, F>( &self, _: <D1 as Dim>::ChildIdx, fun: F, ) -> impl Fn(<<D1 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 moreimpl Copy for CardD1
Auto Trait Implementations§
impl Freeze for CardD1
impl RefUnwindSafe for CardD1
impl Send for CardD1
impl Sync for CardD1
impl Unpin for CardD1
impl UnwindSafe for CardD1
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