Struct graphific::Edge[][src]

pub struct Edge<K> where
    K: Key
{ /* fields omitted */ }

A structure describing an edge with an origin Key and destination Key.

Implementations

impl<K> Edge<K> where
    K: Key
[src]

pub fn new(from: K, to: K) -> Self[src]

Create a new edge.

pub fn from(&self) -> &K[src]

Get the origin.

pub fn to(&self) -> &K[src]

Get the destination

Trait Implementations

impl<K: Clone> Clone for Edge<K> where
    K: Key
[src]

impl<K: Copy> Copy for Edge<K> where
    K: Key
[src]

impl<K: Debug> Debug for Edge<K> where
    K: Key
[src]

impl<K: Eq> Eq for Edge<K> where
    K: Key
[src]

impl<K: Hash> Hash for Edge<K> where
    K: Key
[src]

impl<K: Ord> Ord for Edge<K> where
    K: Key
[src]

impl<K: PartialEq> PartialEq<Edge<K>> for Edge<K> where
    K: Key
[src]

impl<K: PartialOrd> PartialOrd<Edge<K>> for Edge<K> where
    K: Key
[src]

impl<K> StructuralEq for Edge<K> where
    K: Key
[src]

impl<K> StructuralPartialEq for Edge<K> where
    K: Key
[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for Edge<K> where
    K: RefUnwindSafe
[src]

impl<K> Send for Edge<K> where
    K: Send
[src]

impl<K> Sync for Edge<K> where
    K: Sync
[src]

impl<K> Unpin for Edge<K> where
    K: Unpin
[src]

impl<K> UnwindSafe for Edge<K> where
    K: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.