pub enum Grid<Idx>where
Idx: RawIndex,{
Edge(IndexBase<Idx, EdgeIndex>),
Vertex(IndexBase<Idx, VertexIndex>),
Raw(Idx),
}
Expand description
the Grid
enumerate the possible variations of indicies that can be used within the
scope of a hypergraph. This entity is useful for enabling “compoite” collections of
indicies for iteration, traversal, etc.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de, Idx> Deserialize<'de> for Grid<Idx>where
Idx: RawIndex + Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for Grid<Idx>where
Idx: RawIndex + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Idx> IntoDiscriminant for Grid<Idx>where
Idx: RawIndex,
impl<Idx> IntoDiscriminant for Grid<Idx>where
Idx: RawIndex,
Source§type Discriminant = IndexKind
type Discriminant = IndexKind
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<Idx> Ord for Grid<Idx>
impl<Idx> Ord for Grid<Idx>
Source§impl<Idx> PartialOrd for Grid<Idx>where
Idx: RawIndex + PartialOrd,
impl<Idx> PartialOrd for Grid<Idx>where
Idx: RawIndex + PartialOrd,
impl<Idx> Copy for Grid<Idx>
impl<Idx> Eq for Grid<Idx>
impl<Idx> StructuralPartialEq for Grid<Idx>where
Idx: RawIndex,
Auto Trait Implementations§
impl<Idx> Freeze for Grid<Idx>where
Idx: Freeze,
impl<Idx> RefUnwindSafe for Grid<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for Grid<Idx>
impl<Idx> Sync for Grid<Idx>
impl<Idx> Unpin for Grid<Idx>where
Idx: Unpin,
impl<Idx> UnwindSafe for Grid<Idx>where
Idx: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more