#[repr(C)]pub struct PartialPathEdgeList { /* private fields */ }
Expand description
The edges in a path keep track of precedence information so that we can correctly handle shadowed definitions.
Implementations§
Source§impl PartialPathEdgeList
impl PartialPathEdgeList
pub fn len(&self) -> usize
Sourcepub fn have_reversal(&self, partials: &PartialPaths) -> bool
pub fn have_reversal(&self, partials: &PartialPaths) -> bool
Returns whether this edge list is iterable in both directions without needing mutable access to the arena.
Sourcepub fn empty() -> PartialPathEdgeList
pub fn empty() -> PartialPathEdgeList
Returns an empty edge list.
Sourcepub fn push_front(&mut self, partials: &mut PartialPaths, edge: PartialPathEdge)
pub fn push_front(&mut self, partials: &mut PartialPaths, edge: PartialPathEdge)
Pushes a new edge onto the front of this edge list.
Sourcepub fn push_back(&mut self, partials: &mut PartialPaths, edge: PartialPathEdge)
pub fn push_back(&mut self, partials: &mut PartialPaths, edge: PartialPathEdge)
Pushes a new edge onto the back of this edge list.
Sourcepub fn pop_front(
&mut self,
partials: &mut PartialPaths,
) -> Option<PartialPathEdge>
pub fn pop_front( &mut self, partials: &mut PartialPaths, ) -> Option<PartialPathEdge>
Removes and returns the edge at the front of this edge list. If the list is empty, returns
None
.
Sourcepub fn pop_back(
&mut self,
partials: &mut PartialPaths,
) -> Option<PartialPathEdge>
pub fn pop_back( &mut self, partials: &mut PartialPaths, ) -> Option<PartialPathEdge>
Removes and returns the edge at the back of this edge list. If the list is empty, returns
None
.
pub fn display<'a>( self, graph: &'a StackGraph, partials: &'a mut PartialPaths, ) -> impl Display + 'a
Sourcepub fn shadows(
self,
partials: &mut PartialPaths,
other: PartialPathEdgeList,
) -> bool
pub fn shadows( self, partials: &mut PartialPaths, other: PartialPathEdgeList, ) -> bool
Returns whether one edge list shadows another. Note that shadowing is not commutative — if path A shadows path B, the reverse is not true.
pub fn equals( self, partials: &mut PartialPaths, other: PartialPathEdgeList, ) -> bool
pub fn cmp( self, partials: &mut PartialPaths, other: PartialPathEdgeList, ) -> Ordering
Sourcepub fn iter<'a>(
&self,
partials: &'a mut PartialPaths,
) -> impl Iterator<Item = PartialPathEdge> + 'a
pub fn iter<'a>( &self, partials: &'a mut PartialPaths, ) -> impl Iterator<Item = PartialPathEdge> + 'a
Returns an iterator over the contents of this edge list.
Sourcepub fn iter_unordered<'a>(
&self,
partials: &'a PartialPaths,
) -> impl Iterator<Item = PartialPathEdge> + 'a
pub fn iter_unordered<'a>( &self, partials: &'a PartialPaths, ) -> impl Iterator<Item = PartialPathEdge> + 'a
Returns an iterator over the contents of this edge list, with no guarantee about the ordering of the elements.
Trait Implementations§
Source§impl Clone for PartialPathEdgeList
impl Clone for PartialPathEdgeList
Source§fn clone(&self) -> PartialPathEdgeList
fn clone(&self) -> PartialPathEdgeList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<PartialPathEdgeList> for sg_partial_path_edge_list
impl From<PartialPathEdgeList> for sg_partial_path_edge_list
Source§fn from(edges: PartialPathEdgeList) -> sg_partial_path_edge_list
fn from(edges: PartialPathEdgeList) -> sg_partial_path_edge_list
Source§impl Niche for PartialPathEdgeList
impl Niche for PartialPathEdgeList
Source§type Output = MaybeUninit<PartialPathEdgeList>
type Output = MaybeUninit<PartialPathEdgeList>
Self
inside of a ControlledOption
. This might
be Self
itself, if your niche is a valid instance of the type, but which violates some
runtime constraint. But if you cannot easily create your niche as an instance of Self
,
you can use some other type, you can use some other type instead. Read moreSource§fn none() -> Self::Output
fn none() -> Self::Output
None
for a
ControlledOption
.Source§fn is_none(value: &Self::Output) -> bool
fn is_none(value: &Self::Output) -> bool
impl Copy for PartialPathEdgeList
Auto Trait Implementations§
impl Freeze for PartialPathEdgeList
impl !RefUnwindSafe for PartialPathEdgeList
impl Send for PartialPathEdgeList
impl Sync for PartialPathEdgeList
impl Unpin for PartialPathEdgeList
impl UnwindSafe for PartialPathEdgeList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.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>
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>
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.