Struct gut::mesh::topology::CellIndex [−][src]
Define index type
Implementations
impl CellIndex
[src]
pub fn into_inner(self) -> usize
[src]
Trait Implementations
impl Add<CellIndex> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the +
operator.
fn add(self, rhs: CellIndex) -> CellIndex
[src]
impl Add<usize> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> CellIndex
[src]
impl<M: CellAttrib> AttribIndex<M> for CellIndex
[src]
fn attrib_size(mesh: &M) -> usize
[src]
fn attrib_dict(mesh: &M) -> &AttribDict<Self>
[src]
fn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>
[src]
fn attrib_dict_and_cache_mut(
mesh: &mut M
) -> (&mut AttribDict<Self>, Option<&mut AttribValueCache>)
[src]
mesh: &mut M
) -> (&mut AttribDict<Self>, Option<&mut AttribValueCache>)
impl Clone for CellIndex
[src]
impl<M: VertexCell + CellVertex + NumVertices> Connectivity<VertexIndex, CellIndex> for M
[src]
Implement vertex connectivity for cell based meshes (e.g. TetMesh).
type Topo = ()
Additional topology that may aid in computing connectivity. Read more
fn num_elements(&self) -> usize
[src]
fn push_neighbours<T: Default + PartialEq>(
&self,
index: VertexIndex,
stack: &mut Vec<VertexIndex>,
_: &(),
_: Option<&[T]>
)
[src]
&self,
index: VertexIndex,
stack: &mut Vec<VertexIndex>,
_: &(),
_: Option<&[T]>
)
fn precompute_topo(&self) -> Self::Topo
[src]
fn connectivity(&self) -> (Vec<usize>, usize)
[src]
fn connectivity_via_attrib<T>(
&self,
attrib: Option<&str>
) -> (Vec<usize>, usize) where
Self: Attrib,
Src: AttribIndex<Self>,
T: Default + PartialEq + 'static,
[src]
&self,
attrib: Option<&str>
) -> (Vec<usize>, usize) where
Self: Attrib,
Src: AttribIndex<Self>,
T: Default + PartialEq + 'static,
fn connectivity_via_attrib_fn<'a, T, F>(&self, f: F) -> (Vec<usize>, usize) where
T: Default + PartialEq + 'a,
F: FnOnce() -> Option<&'a [T]>,
[src]
T: Default + PartialEq + 'a,
F: FnOnce() -> Option<&'a [T]>,
impl Copy for CellIndex
[src]
impl Debug for CellIndex
[src]
impl Div<usize> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the /
operator.
fn div(self, rhs: usize) -> CellIndex
[src]
impl ElementIndex<usize> for CellIndex
[src]
impl Eq for CellIndex
[src]
impl From<CellIndex> for Index
[src]
impl From<Index> for CellIndex
[src]
impl From<usize> for CellIndex
[src]
impl Hash for CellIndex
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Mul<usize> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the *
operator.
fn mul(self, rhs: usize) -> CellIndex
[src]
impl Ord for CellIndex
[src]
fn cmp(&self, other: &CellIndex) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<CellIndex> for CellIndex
[src]
impl PartialOrd<CellIndex> for CellIndex
[src]
fn partial_cmp(&self, other: &CellIndex) -> Option<Ordering>
[src]
fn lt(&self, other: &CellIndex) -> bool
[src]
fn le(&self, other: &CellIndex) -> bool
[src]
fn gt(&self, other: &CellIndex) -> bool
[src]
fn ge(&self, other: &CellIndex) -> bool
[src]
impl Rem<usize> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the %
operator.
fn rem(self, rhs: usize) -> CellIndex
[src]
impl<T: Real> SplitIntoConnectedComponents<VertexIndex, CellIndex> for TetMesh<T>
[src]
fn split_into_connected_components(self) -> Vec<Self>
[src]
impl<T: Real> SplitIntoConnectedComponents<VertexIndex, CellIndex> for TetMeshExt<T>
[src]
fn split_into_connected_components(self) -> Vec<Self>
[src]
impl StructuralEq for CellIndex
[src]
impl StructuralPartialEq for CellIndex
[src]
impl Sub<CellIndex> for CellIndex
[src]
type Output = CellIndex
The resulting type after applying the -
operator.
fn sub(self, rhs: CellIndex) -> CellIndex
[src]
impl Sub<usize> for CellIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for CellIndex
[src]
impl Send for CellIndex
[src]
impl Sync for CellIndex
[src]
impl Unpin for CellIndex
[src]
impl UnwindSafe for CellIndex
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsSlice<T> for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> CloneBytes for T where
T: 'static + Clone,
[src]
T: 'static + Clone,
pub unsafe fn clone_bytes(
src: &[MaybeUninit<u8>]
) -> Box<[MaybeUninit<u8>], Global>
[src]
src: &[MaybeUninit<u8>]
) -> Box<[MaybeUninit<u8>], Global>
pub unsafe fn clone_from_bytes(
dst: &mut [MaybeUninit<u8>],
src: &[MaybeUninit<u8>]
)
[src]
dst: &mut [MaybeUninit<u8>],
src: &[MaybeUninit<u8>]
)
pub unsafe fn clone_into_raw_bytes(
src: &[MaybeUninit<u8>],
dst: &mut [MaybeUninit<u8>]
)
[src]
src: &[MaybeUninit<u8>],
dst: &mut [MaybeUninit<u8>]
)
impl<M> Connectivity<VertexIndex, CellIndex> for M where
M: NumVertices + CellVertex + VertexCell,
[src]
M: NumVertices + CellVertex + VertexCell,
type Topo = ()
Additional topology that may aid in computing connectivity. Read more
pub fn num_elements(&Self) -> usize
[src]
pub fn push_neighbours<T>(
&Self,
VertexIndex,
&mut Vec<VertexIndex, Global>,
&(),
Option<&[T]>
) where
T: PartialEq<T> + Default,
[src]
&Self,
VertexIndex,
&mut Vec<VertexIndex, Global>,
&(),
Option<&[T]>
) where
T: PartialEq<T> + Default,
fn precompute_topo(&self) -> Self::Topo
[src]
fn connectivity(&self) -> (Vec<usize>, usize)
[src]
fn connectivity_via_attrib<T>(
&self,
attrib: Option<&str>
) -> (Vec<usize>, usize) where
Self: Attrib,
Src: AttribIndex<Self>,
T: Default + PartialEq + 'static,
[src]
&self,
attrib: Option<&str>
) -> (Vec<usize>, usize) where
Self: Attrib,
Src: AttribIndex<Self>,
T: Default + PartialEq + 'static,
fn connectivity_via_attrib_fn<'a, T, F>(&self, f: F) -> (Vec<usize>, usize) where
T: Default + PartialEq + 'a,
F: FnOnce() -> Option<&'a [T]>,
[src]
T: Default + PartialEq + 'a,
F: FnOnce() -> Option<&'a [T]>,
impl<T> CopyElem for T where
T: Any + Copy,
[src]
T: Any + Copy,
impl<T> DebugBytes for T where
T: 'static + Debug,
[src]
T: 'static + Debug,
pub unsafe fn fmt_bytes(
bytes: &[MaybeUninit<u8>],
f: &mut Formatter<'_>
) -> Result<(), Error>
[src]
bytes: &[MaybeUninit<u8>],
f: &mut Formatter<'_>
) -> Result<(), Error>
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> DropBytes for T where
T: 'static,
[src]
T: 'static,
pub unsafe fn drop_bytes(bytes: &mut [MaybeUninit<u8>])
[src]
impl<T> Elem for T where
T: Any + DropBytes,
[src]
T: Any + DropBytes,
impl<T> From<T> for T
[src]
impl<'a, S, I> Get<'a, I> for S where
I: GetIndex<'a, S>,
[src]
I: GetIndex<'a, S>,
type Output = <I as GetIndex<'a, S>>::Output
pub fn get(&self, idx: I) -> Option<<I as GetIndex<'a, S>>::Output>
[src]
pub fn at(&self, idx: I) -> Self::Output
[src]
impl<T> HashBytes for T where
T: 'static + Hash,
[src]
T: 'static + Hash,
pub unsafe fn hash_bytes(bytes: &[MaybeUninit<u8>], state: &mut dyn Hasher)
[src]
impl<T> IntBound for T where
T: Add<usize, Output = T> + Sub<T, Output = T> + Into<usize> + From<usize> + Clone,
[src]
T: Add<usize, Output = T> + Sub<T, Output = T> + Into<usize> + From<usize> + Clone,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, I> Isolate<I> for S where
I: IsolateIndex<S>,
[src]
I: IsolateIndex<S>,
type Output = <I as IsolateIndex<S>>::Output
pub unsafe fn isolate_unchecked(self, idx: I) -> <S as Isolate<I>>::Output
[src]
pub fn try_isolate(self, idx: I) -> Option<<S as Isolate<I>>::Output>
[src]
pub fn isolate(self, idx: I) -> Self::Output
[src]
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> PartialEqBytes for T where
T: 'static + PartialEq<T>,
[src]
T: 'static + PartialEq<T>,
impl<T> Pod for T where
T: 'static + Copy + Send + Sync + Any,
[src]
T: 'static + Copy + Send + Sync + Any,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, N> PushArrayToVec<N> for T where
T: Clone,
N: Array<T>,
[src]
T: Clone,
N: Array<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,