pub struct Computad<'a, Ob, ObSet, E, S = RandomState> { /* private fields */ }
Expand description
A 1-computad.
The set of objects is assumed already constructed, possibly from other generating data, while the top-dimensional generating data is provided directly.
Implementations§
Trait Implementations§
Source§impl<'a, Ob, ObSet, E, S> ColumnarGraph for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> ColumnarGraph for Computad<'a, Ob, ObSet, E, S>
Source§type Edges = HashFinSet<E, S>
type Edges = HashFinSet<E, S>
The set of edges.
Source§type Src = HashColumn<E, Ob, S>
type Src = HashColumn<E, Ob, S>
The map assigning each edge its source vertex.
Source§type Tgt = HashColumn<E, Ob, S>
type Tgt = HashColumn<E, Ob, S>
The map assigning each edge its target vertex.
Source§fn vertex_set(&self) -> &Self::Vertices
fn vertex_set(&self) -> &Self::Vertices
Gets the set of vertices.
Source§fn iter_invalid(&self) -> impl Iterator<Item = InvalidGraph<Self::E>>
fn iter_invalid(&self) -> impl Iterator<Item = InvalidGraph<Self::E>>
Iterates over failures to be a valid graph.
Auto Trait Implementations§
impl<'a, Ob, ObSet, E, S> Freeze for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> RefUnwindSafe for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> Send for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> Sync for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> Unpin for Computad<'a, Ob, ObSet, E, S>
impl<'a, Ob, ObSet, E, S> UnwindSafe for Computad<'a, Ob, ObSet, E, S>
Blanket Implementations§
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
Source§impl<G> Graph for Gwhere
G: ColumnarGraph,
impl<G> Graph for Gwhere
G: ColumnarGraph,
Source§type V = <G as ColumnarGraph>::V
type V = <G as ColumnarGraph>::V
Type of vertices in graph.
Source§type E = <G as ColumnarGraph>::E
type E = <G as ColumnarGraph>::E
Type of edges in graph.
Source§fn has_vertex(&self, v: &<G as Graph>::V) -> bool
fn has_vertex(&self, v: &<G as Graph>::V) -> bool
Does the graph contain the value as a vertex?
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.