ArrayProp

Struct ArrayProp 

Source
pub struct ArrayProp<P, D> { /* private fields */ }
Expand description

A property backed by an array.

Trait Implementations§

Source§

impl<P: Clone, D: Clone> Clone for ArrayProp<P, D>

Source§

fn clone(&self) -> ArrayProp<P, D>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Debug, D: Debug> Debug for ArrayProp<P, D>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T, G> EdgePropMutNew<G, T> for ArrayProp<EdgeIndexProp<G>, Vec<T>>

Source§

fn new_edge_prop(g: &G, value: T) -> Self
where T: Clone,

Creates a new edge prop. Read more
Source§

impl<I, P, D> Index<I> for ArrayProp<P, D>
where P: PropGet<I, Output = usize>, D: Index<usize>,

Source§

type Output = <D as Index<usize>>::Output

The returned type after indexing.
Source§

fn index(&self, item: I) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<I, P, D> IndexMut<I> for ArrayProp<P, D>
where P: PropGet<I, Output = usize>, D: IndexMut<usize>,

Source§

fn index_mut(&mut self, item: I) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<I, P, D> PropGet<I> for ArrayProp<P, D>
where P: PropGet<I, Output = usize>, D: Index<usize>, D::Output: Clone + Sized,

Source§

type Output = <D as Index<usize>>::Output

Source§

fn get(&self, item: I) -> D::Output

Returns the value associated with key.
Source§

fn map<F, O>(self, fun: F) -> Map<Self, F>
where Self: Sized, F: Fn(Self::Output) -> O,

Creates a mapped property that maps each property value using fun.
Source§

fn by_ref(&self) -> &Self

Returns a reference to this property.
Source§

impl<T, G> VertexPropMutNew<G, T> for ArrayProp<VertexIndexProp<G>, Vec<T>>

Source§

fn new_vertex_prop(g: &G, value: T) -> Self
where T: Clone,

Creates a new vertex prop. Read more

Auto Trait Implementations§

§

impl<P, D> Freeze for ArrayProp<P, D>
where P: Freeze, D: Freeze,

§

impl<P, D> RefUnwindSafe for ArrayProp<P, D>

§

impl<P, D> Send for ArrayProp<P, D>
where P: Send, D: Send,

§

impl<P, D> Sync for ArrayProp<P, D>
where P: Sync, D: Sync,

§

impl<P, D> Unpin for ArrayProp<P, D>
where P: Unpin, D: Unpin,

§

impl<P, D> UnwindSafe for ArrayProp<P, D>
where P: UnwindSafe, D: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoOwned<T> for T

Source§

fn into_owned(self) -> T

Source§

impl<P, Idx> PropIndexMut<Idx> for P
where P: IndexMut<Idx>,

Source§

fn set_values_from<P, I>(&mut self, iter: I, source: &P)
where I: IntoIterator, I::Item: IntoOwned<Idx>, Idx: Clone, P: Index<Idx, Output = Self::Output>, Self::Output: Clone,

Set the value associated with each key produced by iter to the value associated with the key in the property source.
Source§

fn set_values<I>(&mut self, iter: I, value: Self::Output)
where I: IntoIterator, I::Item: IntoOwned<Idx>, Self::Output: Clone,

Set the value associated with keys produced by iter to value.
Source§

impl<G> Sets for G

Source§

fn vertices_complement<I>(&self, vertices: I) -> VerticesComplement<'_, Self>

Source§

fn edges_complement<I>(&self, edges: I) -> EdgesComplement<'_, Self>
where Self: EdgeList + WithEdgeProp<bool>, I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Source§

fn independent_vertex_set_from_iter<I>( &self, vertices: I, ) -> IndependentVertexSetFromIter<'_, Self, I::IntoIter>

Source§

fn is_independent_vertex_set<I>(&self, vertices: I) -> bool

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<P, G, T> EdgeProp<G, T> for P
where G: WithEdge, P: Index<<G as WithEdge>::Edge, Output = T>,

Source§

impl<P, G, T> EdgePropGet<G, T> for P
where G: WithEdge, P: PropGet<<G as WithEdge>::Edge, Output = T>,

Source§

impl<P, G, T> EdgePropMut<G, T> for P
where G: WithEdge, P: IndexMut<<G as WithEdge>::Edge, Output = T>,

Source§

impl<P, G, T> VertexProp<G, T> for P
where G: WithVertex, P: Index<<G as WithVertex>::Vertex, Output = T>,

Source§

impl<P, G, T> VertexPropGet<G, T> for P
where G: WithVertex, P: PropGet<<G as WithVertex>::Vertex, Output = T>,

Source§

impl<P, G, T> VertexPropMut<G, T> for P
where G: WithVertex, P: IndexMut<<G as WithVertex>::Vertex, Output = T>,