pub struct EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: Geometry,{ /* private fields */ }
Expand description
View of an edge.
Provides traversals, queries, and mutations related to edges in a graph. See the module documentation for more information about topological views.
Implementations§
Source§impl<'a, M, G> EdgeView<&'a mut M, G>
impl<'a, M, G> EdgeView<&'a mut M, G>
Sourcepub fn into_orphan(self) -> OrphanEdgeView<'a, G>
pub fn into_orphan(self) -> OrphanEdgeView<'a, G>
Converts a mutable view into an orphan view.
Sourcepub fn into_ref(self) -> EdgeView<&'a M, G>
pub fn into_ref(self) -> EdgeView<&'a M, G>
Converts a mutable view into an immutable view.
This is useful when mutations are not (or no longer) needed and mutual access is desired.
Sourcepub fn with_ref<T, K, F>(self, f: F) -> Either<Result<T, GraphError>, Self>
pub fn with_ref<T, K, F>(self, f: F) -> Either<Result<T, GraphError>, Self>
Reborrows the view and constructs another mutable view from a given key.
This allows for fallible traversals from a mutable view without the
need for direct access to the source MeshGraph
. If the given function
emits a key, then that key will be used to convert this view into
another. If no key is emitted, then the original mutable view is
returned.
Source§impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: Geometry,
impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: Geometry,
Source§impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: Geometry,
impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + Consistent,
G: Geometry,
Source§impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + AsStorage<FacePayload<G>> + AsStorage<VertexPayload<G>> + Consistent,
G: EdgeMidpoint + Geometry,
impl<M, G> EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<ArcPayload<G>> + AsStorage<EdgePayload<G>> + AsStorage<FacePayload<G>> + AsStorage<VertexPayload<G>> + Consistent,
G: EdgeMidpoint + Geometry,
Trait Implementations§
Source§impl<M, G> Deref for EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: Geometry,
impl<M, G> Deref for EdgeView<M, G>where
M: Reborrow,
M::Target: AsStorage<EdgePayload<G>>,
G: Geometry,
Source§impl<M, G> DerefMut for EdgeView<M, G>where
M: Reborrow + ReborrowMut,
M::Target: AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: Geometry,
impl<M, G> DerefMut for EdgeView<M, G>where
M: Reborrow + ReborrowMut,
M::Target: AsStorage<EdgePayload<G>> + AsStorageMut<EdgePayload<G>>,
G: Geometry,
impl<M, G> Copy for EdgeView<M, G>
Auto Trait Implementations§
impl<M, G> Freeze for EdgeView<M, G>where
M: Freeze,
impl<M, G> RefUnwindSafe for EdgeView<M, G>where
M: RefUnwindSafe,
G: RefUnwindSafe,
impl<M, G> Send for EdgeView<M, G>
impl<M, G> Sync for EdgeView<M, G>
impl<M, G> Unpin for EdgeView<M, G>
impl<M, G> UnwindSafe for EdgeView<M, G>where
M: UnwindSafe,
G: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGeometry<T> for T
impl<T> FromGeometry<T> for T
fn from_geometry(other: T) -> T
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 moreSource§impl<T, U> IntoGeometry<U> for Twhere
U: FromGeometry<T>,
impl<T, U> IntoGeometry<U> for Twhere
U: FromGeometry<T>,
fn into_geometry(self) -> U
Source§impl<T, U> IntoInteriorGeometry<U> for Twhere
U: FromInteriorGeometry<T>,
impl<T, U> IntoInteriorGeometry<U> for Twhere
U: FromInteriorGeometry<T>,
fn into_interior_geometry(self) -> U
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.