pub struct PersistantElementIter { /* private fields */ }
Expand description
Focus systems need a iterator that can persist through changes in the crate::prelude::RealDom This iterator traverses the tree depth first. You can iterate through it with PersistantElementIter::next and PersistantElementIter::prev. The iterator loops around when it reaches the end or the beginning.
Implementations§
Source§impl PersistantElementIter
impl PersistantElementIter
Sourcepub fn create<V: FromAnyValue + Send + Sync>(rdom: &mut RealDom<V>) -> Self
pub fn create<V: FromAnyValue + Send + Sync>(rdom: &mut RealDom<V>) -> Self
Create a new iterator in the RealDom
Sourcepub fn next<V: FromAnyValue + Send + Sync>(
&mut self,
rdom: &RealDom<V>,
) -> ElementProduced
pub fn next<V: FromAnyValue + Send + Sync>( &mut self, rdom: &RealDom<V>, ) -> ElementProduced
get the next element
Sourcepub fn prev<V: FromAnyValue + Send + Sync>(
&mut self,
rdom: &RealDom<V>,
) -> ElementProduced
pub fn prev<V: FromAnyValue + Send + Sync>( &mut self, rdom: &RealDom<V>, ) -> ElementProduced
get the previous element
Auto Trait Implementations§
impl Freeze for PersistantElementIter
impl RefUnwindSafe for PersistantElementIter
impl Send for PersistantElementIter
impl Sync for PersistantElementIter
impl Unpin for PersistantElementIter
impl UnwindSafe for PersistantElementIter
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