Skip to main content

PolytopalConnectivity

Struct PolytopalConnectivity 

Source
pub struct PolytopalConnectivity<const M: usize>(/* private fields */);

Implementations§

Source§

impl<const M: usize> PolytopalConnectivity<M>

Source

pub fn elements_faces(&self) -> &[Vec<usize>]

Source

pub fn faces_nodes(&self) -> &[Vec<usize>]

Source

pub fn iter(&self) -> Iter<'_, Vec<usize>>

Trait Implementations§

Source§

impl<const M: usize> From<(Vec<Vec<usize>>, Vec<Vec<usize>>)> for PolytopalConnectivity<M>

Source§

fn from( (elements_faces, faces_nodes): (Vec<Vec<usize>>, Vec<Vec<usize>>), ) -> Self

Converts to this type from the input type.
Source§

impl<'a, const M: usize> IntoIterator for &'a PolytopalConnectivity<M>

Source§

type Item = &'a Vec<usize>

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, Vec<usize>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<const M: usize> IntoIterator for PolytopalConnectivity<M>

Source§

type Item = Vec<usize>

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<Vec<usize>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl TryFrom<Connectivity> for PolytopalConnectivity<2>

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PolytopalConnectivity<3>

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<const M: usize> Freeze for PolytopalConnectivity<M>

§

impl<const M: usize> RefUnwindSafe for PolytopalConnectivity<M>

§

impl<const M: usize> Send for PolytopalConnectivity<M>

§

impl<const M: usize> Sync for PolytopalConnectivity<M>

§

impl<const M: usize> Unpin for PolytopalConnectivity<M>

§

impl<const M: usize> UnsafeUnpin for PolytopalConnectivity<M>

§

impl<const M: usize> UnwindSafe for PolytopalConnectivity<M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.