Skip to main content

EdgeMutRef

Struct EdgeMutRef 

Source
pub struct EdgeMutRef<'graph, NodeId: Identifier, EdgeId: Identifier, NodeData, EdgeData> {
    pub id: EdgeId,
    /* private fields */
}

Fields§

§id: EdgeId

Implementations§

Source§

impl<NodeId: Identifier, EdgeId: Identifier, NodeData, EdgeData> EdgeMutRef<'_, NodeId, EdgeId, NodeData, EdgeData>

Source

pub fn data(&mut self) -> &mut EdgeData

Trait Implementations§

Source§

impl<NodeId: Identifier, EdgeId: Identifier, NodeData, EdgeData> Deref for EdgeMutRef<'_, NodeId, EdgeId, NodeData, EdgeData>

Source§

type Target = EdgeData

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<NodeId: Identifier, EdgeId: Identifier, NodeData, EdgeData> DerefMut for EdgeMutRef<'_, NodeId, EdgeId, NodeData, EdgeData>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'graph, NodeId: Identifier, EdgeId: Identifier, NodeData, EdgeData> EdgeMut<'graph> for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>

Source§

type Graph = OwningGraph<NodeId, EdgeId, NodeData, EdgeData>

Source§

fn new( id: <Self::Graph as Graph>::EdgeId, graph: &'graph mut Self::Graph, ) -> Self

Source§

fn id(&self) -> <Self::Graph as Graph>::EdgeId

Returns this edge identifier.
Source§

fn graph(&mut self) -> &mut Self::Graph

Returns the backing graph reference for this edge.
Source§

fn from_id(&self) -> <Self::Graph as Graph>::NodeId

Returns the source node’s id for this edge.
Source§

fn to_id(&self) -> <Self::Graph as Graph>::NodeId

Returns the destination node’s id for this edge.
Source§

fn set_from(&mut self, node: <Self::Graph as Graph>::NodeId)

Redirects this edge to originate from node instead of its current source.
Source§

fn from(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_>

Returns mutable access to the source node for this edge.
Source§

fn to(&mut self) -> <Self::Graph as GraphMut>::NodeMut<'_>

Returns mutable access to the destination node for this edge.
Source§

fn as_ref(&mut self) -> <Self::Graph as Graph>::Edge<'_>

Returns an immutable view of this edge handle.

Auto Trait Implementations§

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> !UnwindSafe for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> Freeze for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: Freeze, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: Freeze,

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> RefUnwindSafe for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: RefUnwindSafe, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: RefUnwindSafe,

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> Send for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: Send, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: Send,

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> Sync for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: Sync, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: Sync,

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> Unpin for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: Unpin, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: Unpin,

§

impl<'graph, NodeId, EdgeId, NodeData, EdgeData> UnsafeUnpin for EdgeMutRef<'graph, NodeId, EdgeId, NodeData, EdgeData>
where EdgeId: UnsafeUnpin, &'graph mut OwningGraph<NodeId, EdgeId, NodeData, EdgeData>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.