pub struct Link<L, EXTID>{ /* private fields */ }Implementations§
Source§impl<L, EXTID> Link<L, EXTID>
impl<L, EXTID> Link<L, EXTID>
pub fn external_link_id(&self) -> EXTID
pub fn source_node_index(&self) -> NodeIndex
pub fn target_node_index(&self) -> NodeIndex
pub fn is_active(&self) -> bool
pub fn weight(&self) -> L
pub fn set_weight(&mut self, new_weight: L)
Trait Implementations§
Auto Trait Implementations§
impl<L, EXTID> Freeze for Link<L, EXTID>
impl<L, EXTID> RefUnwindSafe for Link<L, EXTID>where
L: RefUnwindSafe,
EXTID: RefUnwindSafe,
impl<L, EXTID> Send for Link<L, EXTID>
impl<L, EXTID> Sync for Link<L, EXTID>
impl<L, EXTID> Unpin for Link<L, EXTID>
impl<L, EXTID> UnwindSafe for Link<L, EXTID>where
L: UnwindSafe,
EXTID: 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