Struct graphific::Edge [−][src]
Implementations
impl<K> Edge<K> where
K: Key,
[src]
K: Key,
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]
K: Key,
impl<K: Copy> Copy for Edge<K> where
K: Key,
[src]
K: Key,
impl<K: Debug> Debug for Edge<K> where
K: Key,
[src]
K: Key,
impl<K: Eq> Eq for Edge<K> where
K: Key,
[src]
K: Key,
impl<K: Hash> Hash for Edge<K> where
K: Key,
[src]
K: Key,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K: Ord> Ord for Edge<K> where
K: Key,
[src]
K: Key,
fn cmp(&self, other: &Edge<K>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<K: PartialEq> PartialEq<Edge<K>> for Edge<K> where
K: Key,
[src]
K: Key,
impl<K: PartialOrd> PartialOrd<Edge<K>> for Edge<K> where
K: Key,
[src]
K: Key,
fn partial_cmp(&self, other: &Edge<K>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K> StructuralEq for Edge<K> where
K: Key,
[src]
K: Key,
impl<K> StructuralPartialEq for Edge<K> where
K: Key,
[src]
K: Key,
Auto Trait Implementations
impl<K> RefUnwindSafe for Edge<K> where
K: RefUnwindSafe,
[src]
K: RefUnwindSafe,
impl<K> Send for Edge<K> where
K: Send,
[src]
K: Send,
impl<K> Sync for Edge<K> where
K: Sync,
[src]
K: Sync,
impl<K> Unpin for Edge<K> where
K: Unpin,
[src]
K: Unpin,
impl<K> UnwindSafe for Edge<K> where
K: UnwindSafe,
[src]
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,