Skip to main content

Set

Struct Set 

Source
pub struct Set<S> { /* private fields */ }

Implementations§

Source§

impl<S> Set<S>

Source

pub fn members(&self) -> &S

Source

pub fn members_mut(&mut self) -> &mut S

Source

pub fn into_members(self) -> S

Source

pub fn numbers(&self) -> Option<&[usize]>

Source

pub fn set_numbers(&mut self, numbers: Vec<usize>)

Source§

impl<S> Set<S>
where S: Tensor,

Source

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut S::Item>

Trait Implementations§

Source§

impl<S> From<(S, Vec<usize>)> for Set<S>

Source§

fn from((members, numbers): (S, Vec<usize>)) -> Self

Converts to this type from the input type.
Source§

impl<S> From<S> for Set<S>

Source§

fn from(members: S) -> Self

Converts to this type from the input type.
Source§

impl<S> From<Set<S>> for (S, Option<Vec<usize>>)

Source§

fn from(set: Set<S>) -> Self

Converts to this type from the input type.
Source§

impl<S> From<Set<S>> for Sets<S>

Source§

fn from(set: Set<S>) -> Self

Converts to this type from the input type.
Source§

impl<S> From<Sets<S>> for Set<S>

Source§

fn from(sets: Sets<S>) -> Self

Converts to this type from the input type.
Source§

impl<S, T> IntoIterator for Set<S>
where S: IntoIterator<Item = T, IntoIter = IntoIter<T>>,

Source§

type Item = T

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<<Set<S> as IntoIterator>::Item>

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<Set<Vec<Connectivity>>> for Vec<[usize; 3]>

Source§

type Error = &'static str

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

fn try_from(connectivities: Connectivities) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Set<Vec<Connectivity>>> for Vec<[usize; 8]>

Source§

type Error = &'static str

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

fn try_from(connectivities: Connectivities) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<S> Freeze for Set<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for Set<S>
where S: RefUnwindSafe,

§

impl<S> Send for Set<S>
where S: Send,

§

impl<S> Sync for Set<S>
where S: Sync,

§

impl<S> Unpin for Set<S>
where S: Unpin,

§

impl<S> UnsafeUnpin for Set<S>
where S: UnsafeUnpin,

§

impl<S> UnwindSafe for Set<S>
where S: UnwindSafe,

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<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
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.