pub struct LookAheadChildren<'a, S> { /* private fields */ }
Expand description
Children of a LookAheadSelection
.
Implementations§
Source§impl<'a, S> LookAheadChildren<'a, S>
impl<'a, S> LookAheadChildren<'a, S>
Sourcepub fn select(&self, name: &str) -> Option<LookAheadSelection<'a, S>>
pub fn select(&self, name: &str) -> Option<LookAheadSelection<'a, S>>
Sourcepub fn has_child(&self, name: &str) -> bool
pub fn has_child(&self, name: &str) -> bool
Checks if the child selection with the specified name
exists.
If a child has an alias, it will only match if the alias matches the specified name
.
Sourcepub fn names(&self) -> impl DoubleEndedIterator<Item = &'a str> + '_
pub fn names(&self) -> impl DoubleEndedIterator<Item = &'a str> + '_
Returns the possibly aliased names of the top-level children from the current selection.
Sourcepub fn iter(
&self,
) -> impl DoubleEndedIterator<Item = &LookAheadSelection<'a, S>> + '_
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = &LookAheadSelection<'a, S>> + '_
Returns an Iterator
over these children, by reference.
Trait Implementations§
Source§impl<'a, S> Clone for LookAheadChildren<'a, S>
impl<'a, S> Clone for LookAheadChildren<'a, S>
Source§impl<'a, S: Debug> Debug for LookAheadChildren<'a, S>
impl<'a, S: Debug> Debug for LookAheadChildren<'a, S>
Source§impl<'a, S> Default for LookAheadChildren<'a, S>
impl<'a, S> Default for LookAheadChildren<'a, S>
Source§impl<'a, S: ScalarValue> IntoIterator for LookAheadChildren<'a, S>
impl<'a, S: ScalarValue> IntoIterator for LookAheadChildren<'a, S>
Source§type Item = LookAheadSelection<'a, S>
type Item = LookAheadSelection<'a, S>
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<<LookAheadChildren<'a, S> as IntoIterator>::Item>
type IntoIter = IntoIter<<LookAheadChildren<'a, S> as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<'a, S> Freeze for LookAheadChildren<'a, S>
impl<'a, S> RefUnwindSafe for LookAheadChildren<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for LookAheadChildren<'a, S>where
S: Sync,
impl<'a, S> Sync for LookAheadChildren<'a, S>where
S: Sync,
impl<'a, S> Unpin for LookAheadChildren<'a, S>
impl<'a, S> UnwindSafe for LookAheadChildren<'a, S>where
S: RefUnwindSafe,
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