pub struct Vertex<I: VertexId> { /* private fields */ }
Expand description
A vertex of the graph. When this is dropped, all the outgoing edges and metadata fields will removed from Inspect.
Implementations§
Source§impl<I> Vertex<I>where
I: VertexId,
impl<I> Vertex<I>where
I: VertexId,
Sourcepub fn add_edge<'a, M>(
&mut self,
to: &mut Vertex<I>,
initial_metadata: M,
) -> Edgewhere
M: IntoIterator<Item = Metadata<'a>>,
pub fn add_edge<'a, M>(
&mut self,
to: &mut Vertex<I>,
initial_metadata: M,
) -> Edgewhere
M: IntoIterator<Item = Metadata<'a>>,
Add a new edge to the graph originating at this vertex and going to the vertex to
with the
given metadata.
Sourcepub fn meta(&mut self) -> &mut VertexGraphMetadata<I>
pub fn meta(&mut self) -> &mut VertexGraphMetadata<I>
Get an exclusive reference to the metadata to modify it.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Vertex<I>where
I: Freeze,
impl<I> !RefUnwindSafe for Vertex<I>
impl<I> Send for Vertex<I>where
I: Send,
impl<I> Sync for Vertex<I>where
I: Sync,
impl<I> Unpin for Vertex<I>where
I: Unpin,
impl<I> !UnwindSafe for Vertex<I>
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