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: Clone> Clone for DefaultEdge<W>
[src]fn clone(&self) -> DefaultEdge<W>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W: Copy> Copy for DefaultEdge<W>
[src]
impl<W: Copy> Copy for DefaultEdge<W>
[src]impl<W> Edge<W> for DefaultEdge<W>
[src]
impl<W> Edge<W> for DefaultEdge<W>
[src]For documentation about each function checkout Edge
trait.
fn init(weight: Magnitude<W>) -> Self
[src]
fn get_weight(&self) -> &Magnitude<W>
[src]
Complexity
O(1)
fn set_weight(&mut self, weight: Magnitude<W>)
[src]
Complexity
O(1)
fn set_id(&mut self, id: usize)
[src]
Complexity
O(1)
fn get_id(&self) -> usize
[src]
Complexity
O(1)
impl<W: Any> From<W> for DefaultEdge<W>
[src]
impl<W: Any> From<W> for DefaultEdge<W>
[src]Auto Trait Implementations
impl<W> RefUnwindSafe for DefaultEdge<W> where
W: RefUnwindSafe,
impl<W> RefUnwindSafe for DefaultEdge<W> where
W: RefUnwindSafe,
impl<W> Send for DefaultEdge<W> where
W: Send,
impl<W> Send for DefaultEdge<W> where
W: Send,
impl<W> Sync for DefaultEdge<W> where
W: Sync,
impl<W> Sync for DefaultEdge<W> where
W: Sync,
impl<W> Unpin for DefaultEdge<W> where
W: Unpin,
impl<W> Unpin for DefaultEdge<W> where
W: Unpin,
impl<W> UnwindSafe for DefaultEdge<W> where
W: UnwindSafe,
impl<W> UnwindSafe for DefaultEdge<W> where
W: UnwindSafe,