pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new(nodes: Vec<usize>) -> Result<Self, PathError>
pub fn nodes(&self) -> &[usize]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn edge_count(&self) -> usize
pub fn starts_at(&self, node: usize) -> bool
pub fn ends_at(&self, node: usize) -> bool
Trait Implementations§
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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