pub struct DualCellView<'a, CellDim, const MESH_DIM: usize> { /* private fields */ }Expand description
A view into a dual cell’s data.
This type can also be used to index into a dual Cochain
of the corresponding dimension in a type-checked fashion.
See SimplexView for an example.
Implementations§
Source§impl<'a, CellDim, const MESH_DIM: usize> DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> DualCellView<'a, CellDim, MESH_DIM>
Sourcepub fn dual(
&self,
) -> SimplexView<'_, DimNameDiff<Const<MESH_DIM>, CellDim>, MESH_DIM>
pub fn dual( &self, ) -> SimplexView<'_, DimNameDiff<Const<MESH_DIM>, CellDim>, MESH_DIM>
Get the primal simplex corresponding to this cell.
Trait Implementations§
Source§impl<'a, CellDim: Clone, const MESH_DIM: usize> Clone for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim: Clone, const MESH_DIM: usize> Clone for DualCellView<'a, CellDim, MESH_DIM>
Source§fn clone(&self) -> DualCellView<'a, CellDim, MESH_DIM>
fn clone(&self) -> DualCellView<'a, CellDim, MESH_DIM>
Returns a duplicate 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 moreSource§impl<'a, CellDim: Debug, const MESH_DIM: usize> Debug for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim: Debug, const MESH_DIM: usize> Debug for DualCellView<'a, CellDim, MESH_DIM>
Source§impl<'a, D, const MESH_DIM: usize> Index<DualCellView<'a, D, MESH_DIM>> for CochainImpl<D, Dual>
impl<'a, D, const MESH_DIM: usize> Index<DualCellView<'a, D, MESH_DIM>> for CochainImpl<D, Dual>
Source§impl<'a, D, const MESH_DIM: usize> IndexMut<DualCellView<'a, D, MESH_DIM>> for CochainImpl<D, Dual>
impl<'a, D, const MESH_DIM: usize> IndexMut<DualCellView<'a, D, MESH_DIM>> for CochainImpl<D, Dual>
Source§impl<'a, CellDim, const MESH_DIM: usize> PartialEq for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> PartialEq for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim: Copy, const MESH_DIM: usize> Copy for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> Eq for DualCellView<'a, CellDim, MESH_DIM>
Auto Trait Implementations§
impl<'a, CellDim, const MESH_DIM: usize> Freeze for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> !RefUnwindSafe for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> !Send for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> !Sync for DualCellView<'a, CellDim, MESH_DIM>
impl<'a, CellDim, const MESH_DIM: usize> Unpin for DualCellView<'a, CellDim, MESH_DIM>where
CellDim: Unpin,
impl<'a, CellDim, const MESH_DIM: usize> !UnwindSafe for DualCellView<'a, CellDim, MESH_DIM>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.