pub struct Path { /* private fields */ }Implementations§
Source§impl Path
impl Path
pub fn new<I>(edges: I, closed: bool) -> Selfwhere
I: IntoIterator<Item = Edge>,
pub fn arc<I>(edges: I) -> Selfwhere
I: IntoIterator<Item = Edge>,
pub fn circ<I>(edges: I) -> Selfwhere
I: IntoIterator<Item = Edge>,
pub fn contains(&self, e: Edge) -> bool
pub fn len(&self) -> usize
pub fn edges(&self) -> &Vec<Edge> ⓘ
pub fn min_edge(&self) -> Edge
pub fn ends(&self) -> Option<(Edge, Edge)>
pub fn is_arc(&self) -> bool
pub fn is_circle(&self) -> bool
pub fn reduce(&mut self)
pub fn is_connectable(&self, other: &Self) -> bool
pub fn is_connectable_bothends(&self, other: &Self) -> bool
pub fn connect(&mut self, other: Self)
pub fn is_adj(&self, other: &Path, link: &Link) -> bool
pub fn unori_eq(&self, other: &Self) -> 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more