pub struct WeightedEdge {
pub source: usize,
pub target: usize,
pub weight: f64,
}Fields§
§source: usize§target: usize§weight: f64Implementations§
Source§impl WeightedEdge
impl WeightedEdge
pub fn new( source: usize, target: usize, weight: f64, ) -> Result<WeightedEdge, WeightedGraphError>
pub const fn reversed(&self) -> WeightedEdge
Trait Implementations§
Source§impl Clone for WeightedEdge
impl Clone for WeightedEdge
Source§fn clone(&self) -> WeightedEdge
fn clone(&self) -> WeightedEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeightedEdge
impl Debug for WeightedEdge
Source§impl PartialEq for WeightedEdge
impl PartialEq for WeightedEdge
Source§fn eq(&self, other: &WeightedEdge) -> bool
fn eq(&self, other: &WeightedEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WeightedEdge
impl StructuralPartialEq for WeightedEdge
Auto Trait Implementations§
impl Freeze for WeightedEdge
impl RefUnwindSafe for WeightedEdge
impl Send for WeightedEdge
impl Sync for WeightedEdge
impl Unpin for WeightedEdge
impl UnsafeUnpin for WeightedEdge
impl UnwindSafe for WeightedEdge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more