pub struct Edge<T, I> {
pub from: usize,
pub to: usize,
pub weight: T,
pub index: I,
}
Expand description
グラフの辺
Fields§
§from: usize
辺の始点
to: usize
辺の終点
weight: T
辺の重み
index: I
辺の番号など
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, I> Freeze for Edge<T, I>
impl<T, I> RefUnwindSafe for Edge<T, I>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<T, I> Send for Edge<T, I>
impl<T, I> Sync for Edge<T, I>
impl<T, I> Unpin for Edge<T, I>
impl<T, I> UnwindSafe for Edge<T, I>where
T: UnwindSafe,
I: UnwindSafe,
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