pub struct EdgeView<B> where
B: Reborrow,
B::Target: AsStorage<Edge<<B::Target as Parametric>::Data>> + Parametric, { /* private fields */ }
Expand description
View of an edge entity.
An edge connecting a vertex $A$ and a vertex $B$ is notated $\overleftrightarrow{AB}$ or $\overleftrightarrow{BA}$.
See the graph
module documentation for more information about views.
Implementations
sourceimpl<B, M> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<<B as Parametric>::Data>> + Parametric,
impl<B, M> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<<B as Parametric>::Data>> + Parametric,
sourceimpl<'a, B, M, G> EdgeView<B> where
B: ReborrowInto<'a, Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<'a, B, M, G> EdgeView<B> where
B: ReborrowInto<'a, Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> EdgeView<B> where
B: ReborrowMut<Target = M>,
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> EdgeView<B> where
B: ReborrowMut<Target = M>,
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
This impl block contains no items.
Reachable API.
sourceimpl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + AsStorage<Vertex<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + AsStorage<Vertex<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
pub fn midpoint(&self) -> VertexPosition<G> where
G: EdgeMidpoint,
G::Vertex: AsPosition,
Trait Implementations
sourceimpl<B> Borrow<EdgeKey> for EdgeView<B> where
B: Reborrow,
B::Target: AsStorage<Edge<<B as Parametric>::Data>> + Parametric,
impl<B> Borrow<EdgeKey> for EdgeView<B> where
B: Reborrow,
B::Target: AsStorage<Edge<<B as Parametric>::Data>> + Parametric,
sourceimpl<B, M, G> Clone for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
View<B, Edge<G>>: Clone,
impl<B, M, G> Clone for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
View<B, Edge<G>>: Clone,
sourceimpl<B, M, G> ClosedView for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> ClosedView for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> Deref for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> Deref for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> DerefMut for EdgeView<B> where
B: ReborrowMut<Target = M>,
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> DerefMut for EdgeView<B> where
B: ReborrowMut<Target = M>,
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<'a, M, G> From<EdgeView<&'a mut M>> for EdgeOrphan<'a, G> where
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: 'a + GraphData,
impl<'a, M, G> From<EdgeView<&'a mut M>> for EdgeOrphan<'a, G> where
M: AsStorageMut<Edge<G>> + Parametric<Data = G>,
G: 'a + GraphData,
sourceimpl<B, M, G> Hash for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> Hash for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> PartialEq<EdgeView<B>> for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> PartialEq<EdgeView<B>> for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
sourceimpl<B, M, G> ToArc<B> for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> ToArc<B> for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Arc<G>> + AsStorage<Edge<G>> + Consistent + Parametric<Data = G>,
G: GraphData,
impl<B, M, G> Copy for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
View<B, Edge<G>>: Copy,
impl<B, M, G> Eq for EdgeView<B> where
B: Reborrow<Target = M>,
M: AsStorage<Edge<G>> + Parametric<Data = G>,
G: GraphData,
Auto Trait Implementations
impl<B> RefUnwindSafe for EdgeView<B> where
B: RefUnwindSafe,
impl<B> Send for EdgeView<B> where
B: Send,
impl<B> Sync for EdgeView<B> where
B: Sync,
impl<B> Unpin for EdgeView<B> where
B: Unpin,
impl<B> UnwindSafe for EdgeView<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromGeometry<T> for T
impl<T> FromGeometry<T> for T
fn from_geometry(other: T) -> T
sourceimpl<T, U> IntoGeometry<U> for T where
U: FromGeometry<T>,
impl<T, U> IntoGeometry<U> for T where
U: FromGeometry<T>,
fn into_geometry(self) -> U
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
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.