Struct prepona::prelude::DefaultEdge[][src]

pub struct DefaultEdge<W> { /* fields omitted */ }

Represent a default edge with only weight.

Trait Implementations

impl<W: Clone> Clone for DefaultEdge<W>[src]

impl<W: Copy> Copy for DefaultEdge<W>[src]

impl<W: Debug> Debug for DefaultEdge<W>[src]

impl<W> Edge<W> for DefaultEdge<W>[src]

For documentation about each function checkout Edge trait.

fn get_weight(&self) -> &Magnitude<W>[src]

fn set_weight(&mut self, weight: Magnitude<W>)[src]

fn set_id(&mut self, id: usize)[src]

fn get_id(&self) -> usize[src]

impl<W: Any> From<W> for DefaultEdge<W>[src]

fn from(weight: W) -> Self[src]

Construct a DefaultEdge from Any value.

impl<W: PartialEq> PartialEq<DefaultEdge<W>> for DefaultEdge<W>[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for DefaultEdge<W> where
    W: RefUnwindSafe

impl<W> Send for DefaultEdge<W> where
    W: Send

impl<W> Sync for DefaultEdge<W> where
    W: Sync

impl<W> Unpin for DefaultEdge<W> where
    W: Unpin

impl<W> UnwindSafe for DefaultEdge<W> where
    W: UnwindSafe

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<!> for T[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.