pub struct RectangularCardD2 { /* private fields */ }
Expand description
A rectangular cardinality of dimension D2
vectors, which is equal to two
lengths across each dimensions.
Trait Implementations§
Source§impl Card<D2> for RectangularCardD2
impl Card<D2> for RectangularCardD2
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<<D2 as Dim>::CardIdx>) -> usize
fn cardinality_of(&self, idx: impl Into<<D2 as Dim>::CardIdx>) -> usize
Returns the cardinality of the child of the vector at the given
idx
.Source§fn child_card(
&self,
i: <D2 as Dim>::ChildIdx,
) -> impl Card<<D2 as Dim>::PrevDim>
fn child_card( &self, i: <D2 as Dim>::ChildIdx, ) -> impl Card<<D2 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: <D2 as Dim>::ChildIdx,
fun: F,
) -> impl Fn(<<D2 as Dim>::PrevDim as Dim>::Idx) -> T
fn child_fun<T, F>( &self, i: <D2 as Dim>::ChildIdx, fun: F, ) -> impl Fn(<<D2 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 Clone for RectangularCardD2
impl Clone for RectangularCardD2
Source§fn clone(&self) -> RectangularCardD2
fn clone(&self) -> RectangularCardD2
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 Copy for RectangularCardD2
Auto Trait Implementations§
impl Freeze for RectangularCardD2
impl RefUnwindSafe for RectangularCardD2
impl Send for RectangularCardD2
impl Sync for RectangularCardD2
impl Unpin for RectangularCardD2
impl UnwindSafe for RectangularCardD2
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