Struct eiffelvis_core::tracked_query::TrackedNodes
source · [−]pub struct TrackedNodes<I> { /* private fields */ }
Expand description
Yields only the nodes that have been added to graph since the last call to handle
Implementations
sourceimpl<I> TrackedNodes<I>
impl<I> TrackedNodes<I>
sourcepub fn range<R>(range: R) -> Selfwhere
I: Copy,
R: RangeBounds<I>,
pub fn range<R>(range: R) -> Selfwhere
I: Copy,
R: RangeBounds<I>,
Creates a new bounded instance, works like ItemIter::range but unbounded bounds are updated on each call to handle
sourcepub fn handle<'a, G>(&'a mut self, graph: &'a G) -> TrackedNodesIter<'a, I, G>ⓘNotable traits for TrackedNodesIter<'a, I, G>impl<'a, I, G> Iterator for TrackedNodesIter<'a, I, G>where
G: Graph<Idx = I>,
I: Idx, type Item = NodeType<'a, G>;
where
G: Graph<Idx = I>,
I: Idx,
pub fn handle<'a, G>(&'a mut self, graph: &'a G) -> TrackedNodesIter<'a, I, G>ⓘNotable traits for TrackedNodesIter<'a, I, G>impl<'a, I, G> Iterator for TrackedNodesIter<'a, I, G>where
G: Graph<Idx = I>,
I: Idx, type Item = NodeType<'a, G>;
where
G: Graph<Idx = I>,
I: Idx,
G: Graph<Idx = I>,
I: Idx, type Item = NodeType<'a, G>;
Returns an iterator over the newly added nodes since the last call. Note: internal cursor is updated on calls to Iterator::next
Trait Implementations
Auto Trait Implementations
impl<I> RefUnwindSafe for TrackedNodes<I>where
I: RefUnwindSafe,
impl<I> Send for TrackedNodes<I>where
I: Send,
impl<I> Sync for TrackedNodes<I>where
I: Sync,
impl<I> Unpin for TrackedNodes<I>where
I: Unpin,
impl<I> UnwindSafe for TrackedNodes<I>where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more