Skip to main content

PrimitiveConnectivity

Struct PrimitiveConnectivity 

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

Implementations§

Source§

impl<const M: usize, const N: usize> PrimitiveConnectivity<M, N>

Source

pub fn iter(&self) -> Iter<'_, [usize; N]>

Source§

impl PrimitiveConnectivity<2, 3>

Source

pub fn add_edge_adjacency_triangular(&self, nodes_nodes: &mut [Vec<usize>])

Source§

impl PrimitiveConnectivity<2, 4>

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Source§

impl PrimitiveConnectivity<3, 4>

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Source§

impl PrimitiveConnectivity<3, 5>

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Source§

impl PrimitiveConnectivity<3, 6>

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Source§

impl PrimitiveConnectivity<3, 8>

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Trait Implementations§

Source§

impl<const M: usize, const N: usize> From<Vec<[usize; N]>> for PrimitiveConnectivity<M, N>

Source§

fn from(connectivity: Vec<[usize; N]>) -> Self

Converts to this type from the input type.
Source§

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

Source§

type Item = &'a [usize; N]

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, [usize; N]>

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, const N: usize> IntoIterator for PrimitiveConnectivity<M, N>

Source§

type Item = [usize; N]

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<[usize; N]>

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 PrimitiveConnectivity<2, 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.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<2, 4>

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 PrimitiveConnectivity<3, 4>

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 PrimitiveConnectivity<3, 5>

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 PrimitiveConnectivity<3, 6>

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 PrimitiveConnectivity<3, 8>

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, const N: usize> !Freeze for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> !RefUnwindSafe for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> Send for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> !Sync for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> Unpin for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> UnsafeUnpin for PrimitiveConnectivity<M, N>

§

impl<const M: usize, const N: usize> UnwindSafe for PrimitiveConnectivity<M, N>

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.